Welcome To Snipplr


Everyone's Recent Snippets Tagged date



1 2 3 4 5 6 7 ... 10
echo's: 2008 / 10 - Company name
0 695 posted 14 years ago by withinmedianl
Always forget the correct way of putting this.
0 725 posted 14 years ago by jhonqwerty
2 1845 posted 14 years ago by stamba
1 598 posted 14 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 1336 posted 14 years ago by Mat_
1 912 posted 14 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 935 posted 14 years ago by munkypot
1 1021 posted 14 years ago by online
Grabbed from parsing magento's source code
0 765 posted 14 years ago by dmistriotis
gets you a date string for today in YearMonthDay formant like this 20100917
0 870 posted 14 years ago by jlvallelonga
0 665 posted 14 years ago by mfigge
1 827 posted 14 years ago by g8rpal
If on do nothing. If on make off. If off make on. Alter external value and focus.
0 753 posted 14 years ago by davebowker
0 798 posted 14 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 1034 posted 14 years ago by alvincrespo
Great for use in site footers.
0 724 posted 14 years ago by batfan
3 1319 posted 14 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 650 posted 14 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 1208 posted 14 years ago by adrianparr
1 2825 posted 14 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 722 posted 14 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 660 posted 14 years ago by MikeyLikesIt
1 2 3 4 5 6 7 ... 10