icarus5000
Technical User
I'm trying to convert a string in the format "2002-03-04 00:00:00.00" to a Date format.
I have tried
CDate(val(Mid({Query.Edate},6,2)), val(Mid({Query.Edate},9,2)), val(left({Query.Edate},4)))
but get the error "A month number must be between 1 and 12"
Thanks in advance.
I have tried
CDate(val(Mid({Query.Edate},6,2)), val(Mid({Query.Edate},9,2)), val(left({Query.Edate},4)))
but get the error "A month number must be between 1 and 12"
Thanks in advance.