Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This method performs a string replace operation on value, replacing all instances of replaceFrom with replaceTo.

DateAdd(string dateTime, string format, string days, string months, string years)

Takes an input date and time string, which must be in the specified format, adds the given number of days, months, and years to it, and returns the resulting date and time formatted according to the same format.

TimeAdd(string dateTime, string format, string hours, string minutes)

Takes an input date and time string, which must be in the specified format, adds the given number of hours, and minutes to it, and returns the resulting date and time formatted according to the same format.

GetLocalDateTime()

Gets the current local date and time formatted according to the standard XML date and time format mask.

GetLocalDateTime(string formatMask)

Gets the current local date and time formatted according to the specified format mask.

GetUtcDateTime()

Gets the current UTC date and time formatted according to the standard XML date and time format mask.

GetUtcDateTime(string formatMask)

Gets the current UTC date and time formatted according to the specified format mask.

MathRound(string number, string decimals)

Round the given number to the specified number of decimal places using away-from-zero rounding.

RegexReplace(string input, string pattern, string replacement)

Apply the given regular expression pattern to substitute parts of the input string with the specified replacement string.

SplitString(string input, string separator, string index)

Divide the input string into segments using the given separator string and return the segment at the specified index (starting from 0).

ToUpper(string input)

Transform the entire input string to uppercase.

ToLower(string input)

Transform the entire input string to lowercase.