How to: get Date, Time and Time zone from single DateTimePicker Control
Posted
by Vijay
on Stack Overflow
See other posts from Stack Overflow
or by Vijay
Published on 2009-12-30T05:39:13Z
Indexed on
2010/04/24
4:53 UTC
Read the original article
Hit count: 240
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?
© Stack Overflow or respective owner