Results 1 to 2 of 2

Thread: how to set the date into long date format in the regional settings?

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Philippines
    Posts
    49

    Question

    how can i SET the date into long date format (regional settings)?

    i want that once my form is loaded, it will automatically SET the date in the regional settings into long date format.


  2. #2
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455
    Hell miletjs,

    Use the format function:

    MsgBox FormatDateTime(dteDate, vbGeneralDate)
    MsgBox FormatDateTime(dteDate, vbLongDate)
    MsgBox FormatDateTime(dteDate, vbShortDate)
    MsgBox FormatDateTime(dteDate, vbLongTime)
    MsgBox FormatDateTime(dteDate, vbShortTime)
    MsgBox Format$(dteDate, "ddd, mmm d, yyyy")
    MsgBox Format$(dteDate, "mmm d, H:MM am/pm")

    Nice regards,

    Michelle.

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