Welcome To Snipplr


Everyone's Recent Snippets Tagged date



0 1496 posted 17 years ago by ginoplusio
0 1446 posted 17 years ago by Wiederkehr
3 1604 posted 17 years ago by rblalock
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1 1240 posted 17 years ago by Jaymoon
Format date from yyyy-mm-dd hh:mm:ss TO yyyymmddhhmmss
1 2928 posted 17 years ago by gfazioli
Format strings: * %A - AM or PM * %a - am or pm * %m - Month with leading zeroes (01 - 12) * %n - Month without leading zeroes (1 - 12) * %F - Month name (January - December) * %M - Three letter month name (Jan - Dec) * $d - Da...
0 3289 posted 17 years ago by DaveChild
NOT MY CODE. I was looking for a good code that would validate the date in JavaScript and I found this function. I thought it was worth keeping so I decided to post it on here as opposed to clutter my bookmarks with one more link. Once again I take...
0 1434 posted 17 years ago by ckester
Starting from here: http://snipplr.com/view/2534/update-copyright-date-in-php/ I made one that is a little more sussinct (sp?)
0 1095 posted 17 years ago by SeanJA
This function takes a string containing a date in "mm/dd/yyyy" or "m/d/yyyy" format and converts it to a date object in AS2.
0 1981 posted 17 years ago by Winkyboy
Change only $start variable with your start year. This very simple code will display two dates the next year like this : © Copyright 2008 - 2009, All Rights Reserved. and so on...
1 1344 posted 17 years ago by Pat64
2 1508 posted 17 years ago by morroida
0 2764 posted 17 years ago by morroida
Loads the contens of a dir an sorts them by the date of creation.
2 2062 posted 17 years ago by romanos
alternative to using DateTime.now.to_s
1 1620 posted 17 years ago by jhenry
Today, tomorrow, yesterday and other date calculations
4 1720 posted 17 years ago by stancell
Fecha en formato dd/mm/yyyy o dd-mm-yyyy retorna la diferencia en dias
0 1569 posted 17 years ago by isaac
This changes the date format from y-m-d to d-m-y on PHP
3 4577 posted 17 years ago by isaac
This changes the date format from y-m-d to d-m-y on PHP. It's easy to change the - to / or spaces...
0 2806 posted 17 years ago by isaac
This changes the date format from d-m-y to y-m-d on PHP. It's easy to change the - to / or spaces...
1 3081 posted 17 years ago by isaac
Takes a date and returns a string describing how long ago that date was. examples: 3 seconds ago, 5 days ago, 2 years ago, you get the idea :)
17 9811 posted 17 years ago by patcullen
Instead of using this function to set the default timezone in your script, you can also use the INI setting date.timezone to set the default timezone. * Does not affect timestamp functions, which are all GMT
0 1539 posted 17 years ago by johnself
i found this snippet here on snipplr (see the link up above), and really liked it. it came up with a validation error under XHTML 1.0 Strict so i changed it to what you see in the bottom.....
1 1392 posted 17 years ago by pufftenticle
This will always show the correct date... so it'll say "Copyright 2008 Comapany Name" now, and at exactly midnight on 1st January 2009, it'll say "Copyright 2009 Company Name". Simple!
2 1760 posted 17 years ago by tigercore
Forms a php timestamp out of an date string i.e. create_timestamp(24.12.2007);
0 1024 posted 18 years ago by razel