Home > Software engineering >  datetime syntax seems valid, but causes a syntax error
datetime syntax seems valid, but causes a syntax error

Time:09-14

I'm trying to query my customlogs table (Eg: CustomData_CL) by giving the time range. The result of this query will be the filtered time ranged data. I want to find out the data size of the resulted output.

Query which I have used to fetch the time ranged o/p:

CustomData_CL
| where TimeGenerated  between (datetime(2022–09–14 04:00:00) .. datetime(2020–09–14 05:00:00))

But it is giving the following error:

enter image description here

Can anyone please suggest on the same ?

CodePudding user response:

Note the characters with code point 8211.
These are not standard hyphens (-)

  • Related