Ok – a bit of a mouthful. So the problem I have is this – I need to store a Date for expiry where only the date part is required and I don’t want any timezone conversion. So for example if I have an expiry set to ’08 March 2008′ I want that value to be returned to any client – no matter what their timezone is. The problem with remoting it as a DateTime is that it gets stored/sent as ’08 March 2008 00:00′, which means for clients connecting from any timezone West of me it gets converted and therefore flipped to ’07 March 2008′ Any suggestions for cleanly handling this scenario ? Obviously sending it as a string would work. anything else ? thanks, Ian
Share
You could create a struct Date that provides access to the details you want/need, like:
This is lightweight, flexible and gives you full control.