Welcome To Snipplr


Everyone's Recent Snippets Tagged date



1 2 3 4 5 6 7 ... 10
echo's: 2008 / 10 - Company name
0 513 posted 13 years ago by withinmedianl
Always forget the correct way of putting this.
0 570 posted 13 years ago by jhonqwerty
2 1551 posted 13 years ago by stamba
1 443 posted 13 years ago by metoikos
First you have to add a custom value with a correct date format. The lines: `AND CAST(wpostmeta.meta_value AS DATE) > '".date("Y-m-d H:i:s")."' AND CAST(wpostmeta.meta_value AS DATE) < '".date("Y-m-d H:i:s", $date2)."' ` are only used to select d...
0 1148 posted 13 years ago by Mat_
1 727 posted 13 years ago by Mat_
Simula in Django i campi created e updated aggiornati automaticamente alla creazione e alla modifica del record (Versione 2 senza funzione save ridefinita)
0 730 posted 13 years ago by munkypot
1 794 posted 13 years ago by online
Grabbed from parsing magento's source code
0 593 posted 13 years ago by dmistriotis
gets you a date string for today in YearMonthDay formant like this 20100917
0 660 posted 13 years ago by jlvallelonga
0 510 posted 13 years ago by mfigge
1 648 posted 13 years ago by g8rpal
If on do nothing. If on make off. If off make on. Alter external value and focus.
0 591 posted 13 years ago by davebowker
0 603 posted 13 years ago by alexandrepayet
Working on creating a 'days ago' script. I know some already exist, but I just want to know how to do it myself. I'm also incorporating leap year functionality and some utility functions that could be used on other projects.
2 828 posted 13 years ago by alvincrespo
Great for use in site footers.
0 545 posted 13 years ago by batfan
3 948 posted 13 years ago by rabc
Questo snippet modifica la posizione della data del post se questo è più vecchio di trenta giorni dalla data di pubblicazione.
0 484 posted 13 years ago by gavello
This code uses Senocular SWFReader class to get the modification (publish) date of the SWF, and then displays it as a right-click menu item. You need to make sure that your SWF includes the XMP metadata. In the Flash IDE you can turn this on by going...
2 999 posted 13 years ago by adrianparr
1 2437 posted 13 years ago by acosonic
Useful for event dates - looks at the computers clock and tells the user when something will be available (e.g. this friday, tomorrow, etc). In this example I'm just using the day of a month, but you can use any part/the full date if you desire....
0 556 posted 13 years ago by IsoJon
In drupal, you can configure custom formats at: http://yourdomain.com/admin/settings/date-time/formats/add You can also use these in a custom php function like: <?php>created, 'custom', "F jS, Y"); ?> To look up more options see http://php.ne...
1 494 posted 13 years ago by MikeyLikesIt
1 2 3 4 5 6 7 ... 10