Results 1 to 3 of 3

Thread: [RESOLVED] DateTime picker format

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Resolved [RESOLVED] DateTime picker format

    Hi.
    I am using a datetime picker for mobile device (.NET CF 2.0) but I guess the same thing can be done on the full framework .NET 2.0

    I have made a customformat on this datetime picker to show me the date and time together:

    dd/MM/yyyy HH:MM:ss

    when it comes to binding values (an object date time) to the UI datetime picker, it does this partially - it seems it successfully modify the dd/MM/yyyy correctly but when it comes to the time element I always get this:

    HH:03:42

    so if current time is 13:25:01 - I always get:

    13:03:00

    When debugging - I can see the datetime picker SUCCESSFULLY changing the value to the object's datetime value (yes, the date and time are being set successfully in the .Value property of the date time picker) but when viewing it visually, I do not see the correct set value

    any ideas? am I doing something incorrect?
    Last edited by Hack; Mar 15th, 2006 at 07:45 AM. Reason: Added [RESOLVED] to thread title and green "resolved" checkmark

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: DateTime picker format

    dd/MM/yyyy HH:MM:ss

    Upper case 'M' is for month. Lower case 'm' is for minute.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: DateTime picker format

    Thanks

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width