Postpone transaction activity giving todays date thought I am giving add days+1

Hi All, for any failed transaction I want to postpone it to next day I have used Postpone Transaction Item activity but its still giving todays date.

@vrushali.modani

Postpone Transaction Item activity is placed in the correct position within your workflow.
you can specify the new due date for the transaction. Make sure that you are setting the due date to tomorrow’s date in the activity configuration

Use this Expression:

DateTime.Now.AddDays(1).ToString(“MM/dd/yyyy”)

if anything error let me know

Cheers…!

Hi Dilli, i have tried using the same but it was giving the issue then i passed the todays date from config and tried the same synatx but still same.

Now I am using below syntax:
DateTime.ParseExact(str_PlusOneDay+ " 00:00:00",“dd/MM/yyyy HH:mm:ss”,System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat)

@vrushali.modani

Can you say what is assigned in strplusoneday

In the postponed field…use now.Adddays(1)

Or DateTime.UTCNow.Adddays(1)

Cheers

HI @vrushali.modani

Check out the Related docs

Have you tried like this in the Postpond activity

image

Regards
Gokul

DateTime.Now.AddDays(1).ToString(“dd/MM/yyyy”)

@vrushali.modani

As mentioned please try with DataTime.UTCNow.AddDays(1).ToString("dd/MM/yyyy")

cheers

Try without this, just use DateTime.Now.AddDays(1). Or like @Anil_G mentioned, DataTime.UTCNow.AddDays(1).