Incorporate Daylight Savings Time into B3

rtod2
rtod2 used Ask the Experts™
on
This was originally done by the guy that answered the related question.  It would be great to get his assistance here also :)

https://spreadsheets.google.com/ccc?key=0ApGg6c9aeywQdG8yTzVWSnJPbWpFdmJJSWFBUVhERXc&hl=en&authkey=CNPC_ZkP#gid=0
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2012

Commented:
Please describe what you want help with.

Thanks!

Dave

Author

Commented:
I was trying to get the Market Open/Closed thing we worked on to take Daylight Savings into account.  We discussed the following and made some notes in the sheet.

Central Daylight Time begins on the second Sunday in March at 2am
Central Standard Time begins on the first Sunday in November at 2am

Most Valuable Expert 2012
Top Expert 2012

Commented:
ah - right.  I have a meeting, but will update  upon return.

Dave
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Most Valuable Expert 2012
Top Expert 2012

Commented:
Ok for starters - using the cpearson website, Source: http://www.cpearson.com/excel/DateTimeWS.htm#LastWeekday

we can scroll to find the Nth Day of Week for a month and a year to get what we need for the DST start and end dates in any given year.

Here's the solution, attached .  Momentariliy, I'll udpate the GoogleDoc with it as well.

Enjoy!

Dave
get-DST-dates.xls
Most Valuable Expert 2012
Top Expert 2012
Commented:
Ok the googledoc is updated:

Starting DST Date formula for 2nd Sunday in March:

=DATE(YEAR(NOW()),3,1+((2-(1>=WEEKDAY(DATE(YEAR(NOW()),3,1))))*7)+(1-WEEKDAY(DATE(YEAR(NOW()),3,1))))

ending DST Date formula for 1st Sunday in November:

=DATE(YEAR(NOW()),11,1+((1-(1>=WEEKDAY(DATE(YEAR(NOW()),11,1))))*7)+(1-WEEKDAY(DATE(YEAR(NOW()),11,1))))

Solution is complete.

Cheers,

Dave

Author

Commented:
Exceptional!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial