Results 1 to 4 of 4

Problems with date format

Threaded View

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    42

    Problems with date format

    Hi

    I have an userform with a calendar on it, so the user can choose the prefered data. This is saved as a string in the format "mm/dd/yyyy". I would like to save it as a date and with the format "dd/mm/yyyy" instead, but I cannot figure out how. I have tried this:

    Private Sub PickDate1_Click()
        CalendarView.Show
        DateTB.Value = UF5Date
        DateTB.Value = Format(DateTB.Value, "mm-dd-yyyy")
        DateTB.Value = Format(DateTB.Value, "dd-mm-yyyy")
    End Sub
    Last edited by h0ps; 12-04-2012 at 09:51 AM. Reason: solved

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1