How to convert a text field to a date/time field in Access 2010?

后端 未结 2 744
失恋的感觉
失恋的感觉 2021-01-23 14:42

I am importing an excel file into Access 2010 and the date field(CALLDATE) comes in as text(YYYYMMDD). I would like to use an update query to update a new field \"dateofcall\"

2条回答
  •  囚心锁ツ
    2021-01-23 15:24

    My date came in as text looking like this:"2013-03-23 00:00:00.0"

    I take the left 10 characters only, "2013-03-23", this makes it so Access can recognize it is a date field and then I just switch around the format.

    Format(Left([WEEKEND],10),"m/d/yyyy")
    

提交回复
热议问题