For the complete documentation index, see llms.txt. This page is also available as Markdown.

PTFormat & PTFormatDouble

With the two format functions you can format your property values to suite your needs.

PTFormat

This function has two arguments. The first one is the format string which defines how the resulting string should be formatted. The second argument is the value you want to format.

The following example uses the current local time.

The result is a date format how it is:

The formatting expressions are based on Microsoft. An overview can be found under the following link:

http://www.independent-software.com/net-string-formatting-in-csharp-cheat-sheet.html

PTFormatDouble

PTFormatDouble is just a quick way to format a string to add x amount of decimal places.

And this is how the result looks like.

Last updated