Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to format a date field as it is being outputted as a string eg - 20112112
I need this to be 21-12-2011
Ive tried date(DoB,'dd-mm-yyyy') as DoB - this is outputting strings like '01-00-55345'
Ive also tried to split out the string using mid, left, right and then concatenating, this doesnt work either
date(date#(DoB,'YYYYDDMM'),'DD-MM-YYYY') as DoB
Date() is just a formatting function. Date#() is how you read data from input to create a date field. Used together like the above, one must use the format of the input, and the other the format of the desired output.
date(date#(DoB,'YYYYDDMM'),'DD-MM-YYYY') as DoB
Date() is just a formatting function. Date#() is how you read data from input to create a date field. Used together like the above, one must use the format of the input, and the other the format of the desired output.