Convert a string to a date in Access

后端 未结 1 1100
野性不改
野性不改 2020-12-18 13:03

I\'m migrating data between tables in Access 2003. In the old table, the date was stored as a text field in the format YYYYMMDD.

I want to store the field as a date

相关标签:
1条回答
  • 2020-12-18 13:37

    e.g. cdate(format("20091231", "####/##/##"))

    So, in your case it will be

    SELECT cdate(format(mystringFieldThatIsInYYYYMMDDFormat, "####/##/##"))   
    FROM myData
    
    0 讨论(0)
提交回复
热议问题