stoolpigeon
Programmer
I have an intranet system that is being used for time and attendance. Now my company wants to bring our Chicago office in on the fun.
We are in Arizona where we do not have daylight saving time.
I will know when a person logs in if they are here or in Chicago. If they are in Chicago I will need to check if the date is between the first sunday in April and the last sunday of October.(So I adust the time the correct amount)
I can think of a couple ways to go about this- looping through the first and last 7 days and looking for Sunday- but I am wondering if I am making it more complicated than need be. I've looked in the manual and I didn't see any functions that jumped out at me- suggestions are welcome.
thanks,
Ron
We are in Arizona where we do not have daylight saving time.
I will know when a person logs in if they are here or in Chicago. If they are in Chicago I will need to check if the date is between the first sunday in April and the last sunday of October.(So I adust the time the correct amount)
I can think of a couple ways to go about this- looping through the first and last 7 days and looking for Sunday- but I am wondering if I am making it more complicated than need be. I've looked in the manual and I didn't see any functions that jumped out at me- suggestions are welcome.
thanks,
Ron