Results 1 to 6 of 6

Thread: DATE format (easy one)

  1. #1

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179

    Question

    Hi all

    How do you change the format of the DTPICKER(datepicker) from diplaying :

    month/date/year to date/month/year

    Any help will be greatly apreciated


  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    Just use the Format command like this:

    Code:
    Private Sub Command1_Click()
    ddate = Format(Date, "dd/mm/yyyy")
    MsgBox ddate
    
    End Sub

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Very simple ....

    Rightclick on the DTPicker control. In the property pages, set the date format property to 'custom format' and just below that in the custom format text box enter your own date format like:
    'dd mm yyyy' will give you '01 08 2000'
    'dd mmm yyyy' will give you '01 Aug 2000'
    'dd/mm/yyyy' will give you '01/08/2000'

    By the way, you don't look American. Where are you from?

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  4. #4

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    Thanks for the help guys

    By the way honeybee how do you know i am not an AMERICAN


  5. #5
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    Set Date British

    That's what all non-US people are doing in their programs!
    Well, am I right or am I wrong?

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  6. #6
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    I like YYYYMMDD
    I must be an alien of some kind!
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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