Thursday, March 22, 2018

Using DateTimeToLocalizedString to Display "Saved on 03/22/2018 at 09:55"

Using DateTimeToLocalizedString, how do I get the word " at " in the message below?





DateTimeToLocalizedString allows you to format a datetime into a string, but it also allows you to stuff literal text into that string.  Below is the PeopleCode that generated the message that is displayed above:


Notice that I put the word "at" surrounded by apostrophes into the DateTimeToLocalizedString statement.  That's how it's done.

No comments: