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

Deutz

Board Regular
Joined
Nov 30, 2009
Messages
196
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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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