Postpone format in Queue

Objective : I’ve added 2 hours to system date time and then passing postpone as argument to Queue in dd.MM.yyyy HH:mm:ss format.

Issue : Bot has added postpone period in MM/dd/yyyy HH:mm:ss format instead of dd.MM.yyyy HH:mm:ss format.

I have passed postpone (DateTime) in ‘Add Queue Item’ activity= DateTime.ParseExact(DateTime.Now.ToString(“dd.MM.yyyy HH:mm:ss”),“dd.MM.yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture).AddHours(2)

var = DateTime.ParseExact(DateTime.Now.ToString(“dd.MM.yyyy HH:mm:ss”),“dd.MM.yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture).AddHours(2).ToString(“dd.MM.yyyy HH:mm:ss”)

Note : var (in String) is showing correct format dd.MM.yyyy HH:mm:ss with 2 hours added to current datetime but i can’t pass directly string to Postpone argument in Add Queue Item’ activity.

image

1 Like

Hi @Sonalk ,

Postpone have some standard times defined in uipath doc and it will always prefer those formats.

Read this

Hey @Sonalk

It doesn’t matter. Eventhough it is as MM/dd/yyyy.

End of the say if your month and date is correctly written and saved in orchestrator queue item that’s pretty fine. Format is just for viewing purpose to make it more user friendly or developer friendly.

Hope this makes sense.

Thanks
#nK

Thanks @Nithinkrishna

1 Like

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