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 882 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 453 posted 16 years ago by clapfouine
Easiest way to get the last day in the current month.
2 792 posted 16 years ago by alli14404
0 1556 posted 16 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 584 posted 16 years ago by nicolaspar
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 629 posted 16 years ago by nicolaspar
De aa-mm-dd a dd-mm-aa y al revé
3 662 posted 16 years ago by nicolaspar
The names of the months, as returned by date('M', ...)
1 783 posted 17 years ago by collin
2 899 posted 17 years ago by gdonald
0 508 posted 17 years ago by olive
1 2 3 4 5 Next »