This topic provides code samples of how to format character strings.
-
Concatenates strings and a string variable
"Hi" & myFirstName & ", you won 100 €."
Format("Hi {0}, you won 100 €.", myFirstName)
-
Formats an integer and returns: The code is: 87_675-23
Format("The code is: {0:00_000-0}", 8767523)
-
Formats an integer and returns: The watch costs 19.78 Euro
Format("The watch costs {0:0.00} Euro", 199.77777)
-
Converts a DateTime object to a string formatted as a date
ToString("dd.MM.yyyy")