Hello. I see many similar topics but unfortunately I still am doing something wrong.
My date field is in text format and looks like this:
20121102 (yyyymmdd)
Here is what I've tried:
DATEVALUE(LEFT([FIELDNAME],4),MID([FIELDNAME],5,2),RIGHT([FIELDNAME],2))
Result: The expression you entered has a function containing the wrong number of arguments
DATEVALUE(LEFT([FIELDNAME],8))
Result: Enter parameter value
DATEVALUE(MID([FIELDNAME],5,2)&"/"&MID([FIELDNAME],7,2)&"/"&LEFT([FIELDNAME],4))
Result: Enter parameter value
The conversion works in Excel using this:
DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
We just updated our system which uses this date format in all files so I need to revise all of my existing queries as they are not working. Your help is appreciated!
My date field is in text format and looks like this:
20121102 (yyyymmdd)
Here is what I've tried:
DATEVALUE(LEFT([FIELDNAME],4),MID([FIELDNAME],5,2),RIGHT([FIELDNAME],2))
Result: The expression you entered has a function containing the wrong number of arguments
DATEVALUE(LEFT([FIELDNAME],8))
Result: Enter parameter value
DATEVALUE(MID([FIELDNAME],5,2)&"/"&MID([FIELDNAME],7,2)&"/"&LEFT([FIELDNAME],4))
Result: Enter parameter value
The conversion works in Excel using this:
DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
We just updated our system which uses this date format in all files so I need to revise all of my existing queries as they are not working. Your help is appreciated!