/ Published in: PHP

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);
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function hours12ToTimestamp24( $hora ){ #Saco solo hora y min en un array #Si tiene pm en el string le sumo 12 hs al mod de la hora sobre 12. }
Comments
