.net - Does WPF DatePicker allow you to specify a time zone? -


i'm using wpf toolkit's datepicker select date. set datetime after selecting date @ end of selected date. since converting utc time need able specify user's time zone. since tool running on our machine's cannot use current machine's local time.

when selecting date in datepicker possible specify time zone date corresponds to?

no, if want convert datetime local time utc, need call:

((datetime) selectedtime).touniversaltime(); 

make sure read on caveats of method: http://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime.aspx


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

c++ - Convert big endian to little endian when reading from a binary file -