Error in replace function

In_config1(“Subject”).to String).Replace(“mdd”,Now.Month & “/” & Now.Day)

Here my Subject contains (mdd) . I want to replace mdd with system date

Hi @dutta.marina,

Welcome to Uipath Community :smiley:

Please try like below.Let me know if you have any issues.

In_config1(“Subject”).to String).Replace(“mdd”,Now.Month.Tostring(“d”) + “/” + Now.Day.Tostring(“MM”)).Tostring

Regards,
Omkar P

Hi Omkar,

Options strict on disallows late binding

Hi Omkar,

I tried but it is showing Options strict On disallows late binding

screen shot please

Thanks for the solution

1 Like

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