Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged date



1 2 3 4 5 Next »
A simple but usefull smarty plugin to convert a unix timestamp to any date format. Usage: {$var|convertunix:"d-m-Y"}
2 1109 posted 16 years ago by FrankBr
Taken from : http://www.phpfreechat.net/forum/viewtopic.php?pid=7587 See also this class : http://www.phpbuilder.com/snippet/download.php?type=snippet&id=2205
1 619 posted 16 years ago by clapfouine
Easiest way to get the last day in the current month.
2 1003 posted 16 years ago by alli14404
0 1852 posted 17 years ago by nicolaspar
Convert 12hs format to 24hs format. In example: 10:00:00 a.m. return timestamp for 22:00. Or use: strtotime('1970-01-01 '.$hora);
1 763 posted 17 years ago by nicolaspar
2 1143 posted 17 years ago by depmed
echo validarFecha( '1-1-1998', 0 ) ? 'ok' : 'ko' ; #ok echo validarFecha( '1-1-1998' ) ? 'ok' : 'ko' ; #ko echo validarFecha( '1980/05/06' ) ? 'ok' : 'ko' ; #ok echo validarFecha( '1700-5-1' ) ? 'ok' : 'ko' ; #ok
0 841 posted 17 years ago by nicolaspar
De aa-mm-dd a dd-mm-aa y al revé
3 843 posted 17 years ago by nicolaspar
The names of the months, as returned by date('M', ...)
1 981 posted 18 years ago by collin
2 1086 posted 18 years ago by gdonald
0 662 posted 18 years ago by olive
1 2 3 4 5 Next »