Nerd
(James Conley)
July 29, 2019, 3:12pm
1
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?
@Nerd
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”
Regards,
Karthik Byggari
2 Likes
DateTime.Now.AddDays(5).ToString(“yyyy-MM-dd”) + " - IT Meeting".ToString
try this
1 Like
Nerd
(James Conley)
July 29, 2019, 3:32pm
5
Thanks everyone that was the issue. I knew it would be something simple I just couldn’t figure it out.
1 Like
system
(system)
Closed
August 1, 2019, 3:32pm
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.