> 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 nach Ihren Bedürfnissen formatieren.

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

Diese Funktion hat zwei Argumente. Das 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.

![](https://1597188389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftg6rDNE6Mp4JEEHacwjD%2Fuploads%2Fgit-blob-947ea3ea3f11927b6861511568ea76ed6f3a1c85%2FCalculations-75.png?alt=media)

Das Ergebnis ist ein Datumsformat, so wie es ist:

![](https://1597188389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftg6rDNE6Mp4JEEHacwjD%2Fuploads%2Fgit-blob-da1698108e87f37de92b1d6f4da8afbaedc81418%2FCalculations-85.png?alt=media)

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>

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

PTFormatDouble ist lediglich eine schnelle Möglichkeit, eine Zeichenfolge so zu formatieren, dass eine beliebige Anzahl an Dezimalstellen hinzugefügt wird.

![](https://1597188389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftg6rDNE6Mp4JEEHacwjD%2Fuploads%2Fgit-blob-a8ccc2c496980b43c0c04419599ce98b56a39ec1%2FCalculations-76.png?alt=media)

Und so sieht das Ergebnis aus.

![](https://1597188389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftg6rDNE6Mp4JEEHacwjD%2Fuploads%2Fgit-blob-c4837d31d8ef994d000756028f26cd91cfe71154%2FCalculations-86.png?alt=media)
