> For the complete documentation index, see [llms.txt](https://help.auxalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.auxalia.com/plant-tools/plantexpresstools/how-to-use/calculations/additional-functions/ptformat-ptformatdouble.md).

# PTFormat & PTFormatDouble

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

### <mark style="color:blue;">PTFormat</mark>

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.

![](/files/DrbEXr7YUkcaMP8YIJy0)

The result is a date format how it is:

![](/files/n9aDOg1Bt0z27IMndSmP)

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](https://github.com/auxalia-GmbH/ax-end-user-doc/blob/master/docs/Plant-Tools/en/plantexpresstools/how-to-use/calculations/additional-functions/net-string-formatting-in-csharp-cheat-sheet.md)

### <mark style="color:blue;">PTFormatDouble</mark>

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

![](/files/Da91GPsqFEo9UNuIFSj2)

And this is how the result looks like.

![](/files/VNbBDq76si5AJfuvIIut)
