I've tried this:
Code: Select all
starttime = '".date("h:i a",strtotime($_POSTї'starttime']))."',
starttime = '".date("h:i a",strtotime($_POSTї'endtime']))."'Code: Select all
starttime = '".date("G:i",strtotime($_POSTї'starttime']))."',
starttime = '".date("G:i",strtotime($_POSTї'endtime']))."'I know I could check the string to see if it has am or pm in it and then convert it to a 24 hour format...but what's the fun in that??
shouldn't date() and strtotime() be doing this for me?
Burr