> 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/de/plantexpresstools/how-to-use/calculations/additional-functions/ptformat-ptformatdouble.md).

# PTFormat & PTFormatDouble

Mit den beiden Formatierungsfunktionen können Sie Ihre Eigenschaftswerte Ihren Bedürfnissen entsprechend formatieren.

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

Diese Funktion hat zwei Argumente. Die erste ist die Formatzeichenfolge, die definiert, wie die resultierende Zeichenfolge formatiert werden soll. Das zweite Argument ist der Wert, den Sie formatieren möchten.

Im folgenden Beispiel wird die aktuelle Ortszeit verwendet.

![](/files/qZ7XzkkuL8HCP8u2RBRq)

Das Ergebnis ist ein Datumsformat wie es ist:

![](/files/vVnU0BcqIChNx31fnIbF)

Die Formatierungsausdrücke basieren auf Microsoft. Eine Übersicht finden Sie unter folgendem 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/de/plantexpresstools/how-to-use/calculations/additional-functions/net-string-formatting-in-csharp-cheat-sheet.md)

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

PTFormatDouble ist nur eine schnelle Möglichkeit, eine Zeichenfolge so zu formatieren, dass x Dezimalstellen hinzugefügt werden.

![](/files/AAD4T3MuZ4TttTAf5uq5)

Und so sieht das Ergebnis aus.

![](/files/Fo5pgoTPKw8UPZF8ukF8)
