Convert String to Date in MS Access Query

后端 未结 5 1955
深忆病人
深忆病人 2020-12-06 16:41

I am trying to retrieve data from my access table based on Date column. My requirement is to display everything greater than the certain value. I a

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 17:27

    Basically, this will not work out

    Format("20130423014854","yyyy-MM-dd hh:mm:ss")
    

    the format function will only work if your string has correct format

    Format (#17/04/2004#, "yyyy/mm/dd")
    

    And you need to specify, what datatype of field [Date] is, because I can't put this value 2013-04-23 13:48:54.0 under a General Date field (I use MS access2007). You might want to view this topic: select date in between

提交回复
热议问题