Set Text is placing numbers in between text

I’m using Set Text to place a date into a website.

I’m using
DateTime.Now.AddDays(5).ToString(“yyyy-MM-dd - IT Meeting”) in the Text field.

This works except it’s putting numbers in between/replacing the words.
This is what I get. 2019-08-03 - IT 8eeAinA.D.

What am I doing wrong?

You’re putting your text in the DateTime.ToString function. It doesn’t recognize the characters so it’s parsing what it can. You need to do DateTime.Now.AddDays(5).ToString(“yyyy-MM-dd”) + " - IT Meeting" instead.

1 Like

Please use it in the following way. As your date pattern is incorrect.

You have to append the strings in the following way -

DateTime.Now.AddDays(5).ToString(“yyyy-MM-dd) + “ - IT Meeting”

Karthik Byggari


DateTime.Now.AddDays(5).ToString(“yyyy-MM-dd”) + " - IT Meeting".ToString

try this

1 Like

Thanks everyone that was the issue. I knew it would be something simple I just couldn’t figure it out.

1 Like

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