I am using .Net 4.0. I am working on an application which was first meant for USA only but now its getting global. Issue is: All calculations done in USA or other country happens to be in their individual time zone. Now when we want to compare or filter some data based on a particular date then they dont match as time part of the whole date is different. I know we cant implement application wide timezone like a Culture thing. But is there a way to make minimal code changes and compare only Date part of the DateTime properties in the whole application.
Date which was saved in USA timezone comes as below when India user checks them:
23-Oct-2014 09:30:00 AM
Now when a India user wants to filter 23-Oct-2014 data, nothing is returned because:
23-Oct-2014 09:30:00 AM is not equal to 23-Oct-2014 12:00:00 AM
I dont want to make change in thousands for DateTime properties in whole application, Is there a way to correct the issue with minimal code change for whole application. Any help is greatly appreciated.