Problem:
I have the following unix timestamp as a var: 2003-10-02 08:00:00
The var is $start_datetime.
I need to use the date function like so:
date('m/h/Y', $start_datetime) to make the date formatted better.
My problem is that date('m/h/Y', $start_datetime) = 12/06/1969
So I thought, ahh - for some reason it's not a correctly formatted timestamp, so I tried:
date('m/h/Y', strtotime($start_datetime)) = 10/08/2003 - what happened here? - looks like strtotime gave me the 8th?
What is the deal! I've worked for over an hour on this! I want 10/02/2003! See something I'm missing? For codeflow reasons, I'd rather not use mysql to format this string for me.
Any assistance is appreciated!