Converting String to Date

Greetings,

I’m trying to convert a string to a date in session relevance. We store a date in a parameter that looks exactly like what you would get from the output of :

Q: now as string
A: Thu, 16 May 2019 07:55:56 -0400
T: 0.027 ms
I: singular string

Is there a simple way to convert that back to a date without having to parse it?

I found it - I was trying to cast it to the type of ‘date’. If I convert it to ‘time’ it works

Q: "Thu, 16 May 2019 07:55:56 -0400" as time
A: Thu, 16 May 2019 07:55:56 -0400
T: 0.033 ms
I: singular time
3 Likes