Leonardo
Leonardo

Reputation: 11389

Azure Application Insights - Parse string in format dd/MM/yyyy to datetime

The question is pretty direct: how can i parse a string like "23/12/2017" (dd/MM/yyyy) to a datetime?

Upvotes: 3

Views: 2776

Answers (1)

ZakiMa
ZakiMa

Reputation: 6241

Assuming you're asking about Application Insights Analytics this should do a trick:

todatetime("2015-12-24") == datetime(2015-12-24)

https://docs.loganalytics.io/docs/Language-Reference/Scalar-functions/todatetime()

Upvotes: 6

Related Questions