Example data fields are like :
DATE+05/06/2022 23:59:59;
DATE+06/05/2022 23:59:59;
DATE+14/05/2022 23:59:59;
DATE+26/05/2022 23:59:59;
SUBSTR data we have in dates as :
05/06/2022 23:59:59
06/05/2022 23:59:59
14/05/2022 23:59:59
26/05/2022 23:59:59
Required date fields are like :
2022-06-05 23:59:59
2022-05-06 23:59:59
2022-05-14 23:59:59
2022-05-26 23:59:59
Things I've tried which are populating NULL as end result:
- CASTING to datetime [
CAST('05/06/2022 23:59:59' as datetime)
] - Use of datetime() [
datetime('05/06/2022 23:59:59')
] - Using strftime() [
strftime('%Y-%m-%d %H:%M:%S','05/06/2022 23:59:59')
]
Links I've found which are not being relevant :
- https://stackoverflow.com/a/4429028/2517880
- https://www.tutlane.com/tutorial/sqlite/sqlite-strftime-function
I'm looking for any other way than splitting and concatenating date field.