PHP - strtotime, specify timezone

gui

New Member
I have a date string, say '\[code\]2008-09-11\[/code\]'. I want to get a timestamp out of this, but I need to specify a timezone dynamically (rather then PHP default). So to recap, I have two strings:\[code\]$dateStr = '2008-09-11';$timezone = 'Americas/New_York';\[/code\]How do I get the timestamp for this?EDIT: The time of day will be the midnight of that day.... $dateStr = '2008-09-11 00:00:00';
 
Back
Top