Manhag Posted December 2, 2012 Share Posted December 2, 2012 (edited) hello i want to echo the date"day" of another timezone i tried this but no change in day value $day1 = date("Y-m-d H:i:s"); $day = new DateTime($day1, new DateTimeZone('Pacific/Fiji')); echo "asd".$day->format('j')."asd"; Edited December 2, 2012 by Manhag Quote Link to comment https://forums.phpfreaks.com/topic/271484-how-to-display-the-day-for-another-timezone/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.