Link to home
Start Free TrialLog in
Avatar of unreal400
unreal400

asked on

Find Daylight Savings Day

I am trying to think of a  function that I can pass in a month   and  have the function return a daylight savings day if it exists.

Ie     pass  in the current month  and year  and it will bring back  a dattime  of a day if there is a  day in that month affected by  daylight savings time.    I'm not sure if there is some calculation with datetime  that I can do to figure this out where daylight savings time is.

Avatar of ZachSmith
ZachSmith
Flag of United States of America image

check this one out it addresses your concern
http://csharpfeeds.com/post.aspx?id=1847

Avatar of Cedric Obinna A.
Take a look at https://www.experts-exchange.com/questions/23215107/php-date-function-32-days-in-March.html There's a function in one of the comments that help correct a Day Light Saving day problem there.
Avatar of unreal400
unreal400

ASKER

ShazbotOK

that is close to what I am looking for it checks a specific day.    

I just want the date returned  when the daylight savings hour exists.    so   I give is   March 2008  and it returns which day in that month has daylight savigns hour.     I don't really want to pass it a month then loop through each day checking it  to figure that out I was hoping there was some datetime manipulation that could  find that day.
ASKER CERTIFIED SOLUTION
Avatar of gnoon
gnoon
Flag of Thailand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Rename the attached file from .txt to .vbs and double click on it to get what you want. Study the code too to understand the functions and calls used. I AM NOT THE AUTHOR. For rights and whatever (I don't know if there are any) See http://www.windowsitpro.com/WindowsScripting/Articles/ArticleID/93485/pg/2/2.html
GetDLSDates.txt