ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Date Conversions from UTC to EST (https://www.excelbanter.com/excel-worksheet-functions/15536-date-conversions-utc-est.html)

Kosher Kitten

Date Conversions from UTC to EST
 
I was wondering whether anyone would know how to convert a UTC (Coordinated
Universal Time ) into a date which is in EST (Eastern Standard Time) or a
date which is in PST (Pacific Standard Time).

For example:

I have a UTC time of 1109366276 <-- this is the number in UTC time or
number of seconds since 1/1/1970

What would be the formula I could put into the next column to change the
above number into a PST or EST date/time?



Peo Sjoblom

=A1/86400+DATE(1970,1,1)

where A1 holds 1109366276

To get EST deduct 5 hours, to get PST deduct 8 hours
gives

=A1/86400+DATE(1970,1,1)-(5/24)

for EST

note you need to format the result as date and time or else you get
a serial number so use a custom format like

m/d/yy h:mm

--

Regards,

Peo Sjoblom


"Kosher Kitten" wrote in message
...
I was wondering whether anyone would know how to convert a UTC

(Coordinated
Universal Time ) into a date which is in EST (Eastern Standard Time) or a
date which is in PST (Pacific Standard Time).

For example:

I have a UTC time of 1109366276 <-- this is the number in UTC time or
number of seconds since 1/1/1970

What would be the formula I could put into the next column to change the
above number into a PST or EST date/time?






All times are GMT +1. The time now is 03:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com