I have a query that has a date field in this format (yyyymmdd) just numbers. I am reformatting the the field by creating a calculated field using the following formula:
[DateField] = Date(Left( [DateField] ,4),Mid( [DateField] ,5,2),Right( [DateField] ,2))
I keep getting a message saying my formula contains wrong number of arguments!! This formula always worked in Excel.
Please advise
Cheers
Date()
is a function which accepts no arguments. Beyond that I don't understand what you want to accomplish. When yourDateField
contains the text, "20150821", what do you want to replace it with? It looks like your expression would give you "20150821" back again. – Whidah