I have a column as a string 10/12/2020 13:14:39
I want to convert it to Date format (I'll do that using the refactor tool later). First I need to rearrange this so the time is discarded and the dd/MM/yyyy
is arranged as yyyy/MM/dd
.
I'm using field calculator, how do I do this?
I've tried to_date("CreatedAt", 'dd/MM/yyyy')
and format_date("CreatedAt", 'dd/MM/yyyy')
neither give the correct result.
'0001/01/01'
so while removing the time clearly not the way to do it.Edit/Select/Select Features by Expression/Date and Time/to_date
and then description should point to the QDate::fromString help text.