Profile
Achievement
nicolaspar's Recent SnippetsTagged date
- All /
« Prev 1 Next »
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
771
posted 17 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
859
posted 17 years ago by nicolaspar