I want to format the datetime on Azure Log this is the date time format
DATETIME = 01/Sep/2022:04:48:11 +0000
I tried to split and get 01/Sep/2022 but it wont convert
SampleLog_CL
| extend raw = parse_json(RawData).log
| parse raw with DATETIME
| extend dt = split(DATETIME, ':')
| project DATE=format_datetime(todatetime(dt[0]), 'yyyy-MM-dd')
when I try to put the actual value 01/Sep/2022 it can convert
SampleLog_CL
| extend raw = parse_json(RawData).log
| parse raw with DATETIME
| extend dt = split(DATETIME, ':')
| project DATE=format_datetime(todatetime("01/Sep/2022"), 'yyyy-MM-dd')
How can I convert it?