.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
Post a Comment