How we identify the variable content the date format or date string format

My question is how we identify the invdate variable content date format or string date format
how we put the condition in if condition

Hi @dhanu_lokhande ,

You can use the below expression, replace the date with your string date variable. It will return a boolean value which can be used in if condition.

IsDate("22 september 2020")

Regards,

1 Like

Hi @dhanu_lokhande

You can use the GetType function to determine the type of the variable.

yourVariable.GetType

Hope this helps,
Best Regards.


this type is come where as old date var = “12 april 2023”
so it should come as system.string
but i got this type