Consulting

Results 1 to 5 of 5

Thread: force long date

  1. #1

    force long date

    Hi There,
    I have a userform and need to use long date.
    I am using 2010, cant get a calendar control so i am using a text box is there a way i can force long date (Wednesday, 10th June 2014)

    Thanks,
    Gordon

  2. #2
    VBAX Tutor
    Joined
    Mar 2014
    Posts
    210
    Location
    set the text box property set format = "Long Date"

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Do you want them to input it that way, or just display it so after they have entered the date?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,639
      MsgBox FormatDateTime(Date, 1)

  5. #5
    thanks very much. That seemed to work well however i wish it to convert the date to a long date on the word doc that the userform is linked to

Posting Permissions

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