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

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