Getting DateTime.UtcNow off Latitude/Longitude/Date
Posted on 2012-04-12
I'm attempting to get the sunrise/sunset based off a latitude and longitude and date. I have most of it working, but I'm using the DateTime.UtcNow to accomodate for daylight savings and such. However, I found out that when I run DateTime.UtcNow it gives me the UTC for where the SERVER is at. I need to be able to get the information for where the latitude/longitude are at, and also for the date I pass the function.
Has anybody done this before?