how do i convert days from december 31 1967 to a conventional date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edward gould
    New Member
    • Dec 2010
    • 1

    #1

    how do i convert days from december 31 1967 to a conventional date

    how do i convert from pick os internal date to microsoft access
  • gershwyn
    New Member
    • Feb 2010
    • 122

    #2
    There are a couple ways to do it, depending on what you want to do precisely. Assuming you have a string with the value "December 31 1967", you could convert it to the date data type with the DateValue function
    Code:
    DateValue("December 31 1967")
    or use the Format function to change it into a string with a different format.
    Code:
    Format("December 31 1967", "mm/dd/yyyy")
    Format("December 31 1967", "ddd, m/d")
    Format("December 31 1967", "m-d-yy")
    Output:
    Code:
    12/31/1967
    Sun, 12/31
    12-31-67
    I would suggest reading the help file entries for those two functions to learn more about how they work.

    Comment

    Working...