Getting error with parseDateTime

0
Hi all I am working on dates. I have a one date in string I am trying to convert it in DateTime format but its giving me error contact your system administator. parseDateTime($NewDate1,'dd-MM-yyyy')   Please help me.
asked
1 answers
2

Hey Priyanka,
This may happen if you have the empty value $NewDate1," so the parseDateTime failed.

This should work fine for you.

if ( $NewDate1 != empty) then
parseDateTime( $NewDate1,'dd-MM-yyyy' ) else empty

 

answered