Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged date



0 1321 posted 16 years ago by sinecera
2 1611 posted 16 years ago by randyjhunt
0 1089 posted 16 years ago by kawikak
This function simply takes a Windows UTC timestamp and converts it to Unix epoch. This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since Janua...
0 1803 posted 16 years ago by cllorca
Explode de data para formato BR
0 1238 posted 17 years ago by wesleymacente
Here is a simple method for displaying footer copyright year. This way at the end of the year you are not updating footers for the first 3 weeks in January :)
0 1392 posted 17 years ago by jadedbat
To be placed inside a loop or a query
1 1401 posted 17 years ago by davebowker
0 1505 posted 17 years ago by ginoplusio
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1 1245 posted 17 years ago by Jaymoon
Format date from yyyy-mm-dd hh:mm:ss TO yyyymmddhhmmss
1 2942 posted 17 years ago by gfazioli
Starting from here: http://snipplr.com/view/2534/update-copyright-date-in-php/ I made one that is a little more sussinct (sp?)
0 1104 posted 17 years ago by SeanJA
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 1351 posted 17 years ago by Pat64
2 1511 posted 17 years ago by morroida
0 2774 posted 17 years ago by morroida
Loads the contens of a dir an sorts them by the date of creation.
2 2078 posted 17 years ago by romanos
Today, tomorrow, yesterday and other date calculations
4 1726 posted 17 years ago by stancell
Fecha en formato dd/mm/yyyy o dd-mm-yyyy retorna la diferencia en dias
0 1581 posted 17 years ago by isaac
This changes the date format from y-m-d to d-m-y on PHP
3 4594 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 2818 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 3092 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 9845 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 1547 posted 17 years ago by johnself
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 1767 posted 17 years ago by tigercore
Forms a php timestamp out of an date string i.e. create_timestamp(24.12.2007);
0 1028 posted 18 years ago by razel
The code below will format 2008-01-30 10:58:32 to Jan 30, 2008 See the page http://us2.php.net/date for a complete list of formatting codes.
2 2098 posted 18 years ago by meme