How to: get Date, Time and Time zone from single DateTimePicker Control
- by Vijay
Hi All,
I am developing an application in which I am trying to fetch Date, Time and Time Zone from single DateTimePicker control. Can anybody help to resolve this?
Thanks in advance.
EditV1: I am using .net framework 2.0. Now I am able to fetch Date and Time with Single DateTimepicker by setting its CustomFormat property as;
dtpicker2.CustomFormat = "MM/dd/yyyy,hh:mm:ss"
Now my problem is to fetch TimeZone.
EditV2: Now here is one more issue, if I set DateTimePicker's format property to Time, it shows me something like 2:30:00 PM. I am storing this in a file and reasigning it to the DateTimePicker control. Can anybody help me out, how to achieve this?