Facing error like Error Unrecognized escape sequence, while finding the difference in Time in uipath

Hi,

Facing error like Error Unrecognized escape sequence, while finding the difference in Time in uipath. can anyone help me on this?

Thanks,
Abirami

1 Like

Hey @Abirami_Anbukumar

It’s due to the backslash

Thanks
#nK

we assume you are using c#
so you need to escape the backslash with an additional backslash
ToString("hh\\:mm\\:ss")

As a variant you can use the @ before:
.ToString(@"hh\:mm\:ss")

Thanks @ppr

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.