Convert DateTime claim to string in Azure AD B2C custom policy

Viewed 545

I had a look at the below Date transforms documented but couldnt find one which converts datetime to string. How would you achieve this in the custom policy?

https://docs.microsoft.com/en-us/azure/active-directory-b2c/date-transformations

Reason is AssertDateTimeIsGreaterThan takes input claims as string type. I want to pass currentDateTime to this transform! However as the currentDateTime is of type datetime, it fails!

Regards, Dipesh

1 Answers
Related