February 14th, 2005, 04:03 AM
How can I convert IST time to EST time
Please let me know how to convert IST (Indian Standard Time) to EST,
Its urgent, plz help
February 14th, 2005, 05:10 AM
Originally Posted by kushasthana
February 14th, 2005, 05:14 AM
$YourOwnFormat = "F j, Y, g:i a";
February 14th, 2005, 05:24 AM
I have a date in format like "YYYY-mm-dd H:m:s", its in IST
Now ehn i want to store the time in database then i want to store it in EST time.
Please let me know the procedure, i 'ld not get ur last answer
Originally Posted by thinktank
February 14th, 2005, 05:32 AM
So, you just want the date format differently?
$YourOwnFormat = "Y-m-d, H:i:s";
That would do it to how it is stored in your database
February 17th, 2005, 01:17 AM
IST to EST help
thx for help ... but I m not able to get it
my date is like this in ist time zone
please give me the procedure and code to convert it in EST time zone
i 'll be vary thankful
Originally Posted by MacMyDay
February 17th, 2005, 11:39 AM
Ok, just plug this function somewhere..
You can then call the function in any of the following way..
return date($required_format,strtotime($IST_val." -10 Hours -30 minutes"));
Note: The time returned is EST. To get EDT(Eastern Daylight Time), change the " -10 Hours 30 minutes" to " -9 Hours 30 minutes" in the above function!
echo EST_from_IST("Y-m-d H:i:s"); //returns the current time
echo EST_from_IST("Y-m-d H:i:s","2005-02-18 14:30");
echo EST_from_IST("Y-m-d H:i:s","February 18th, 2005 11:30 AM");
echo EST_from_IST("Y-m-d H:i:s","Yesterday 11:30 AM");
echo EST_from_IST("Y-m-d H:i:s","Tomorrow 5 PM");