VBA to convert UTC date to Australian Eastern Standard Time (AEST)

Deutz

Board Regular
Joined
Nov 30, 2009
Messages
201
Office Version
  1. 365
Platform
  1. Windows
Hi and thanks in advance,

I would just like to check that my understanding of this is correct before writing some code to convert a UTC date/timestamp in Excel to a date in Australian Eastern Standard Time (AEST).

As I understand it:

1. Add 10 hours to the UTC date

2. Write some functions to get the start and end dates for daylight savings.

3. If the converted date falls within the daylight savings period then add 1 hour to the converted date.

Does that sound correct?

Kind regards
Deutz
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Yes.
From what I read, daylight saving time is not in effect in the state of Qeensland, while it is used in the southern states.

Artik

Thanks Atrik for confirming I am on the right track and the Queensland info.

Cheers
Deutz
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,019
Members
453,520
Latest member
packrat68

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top