---
title: ".ToDateTime (.string[] Objektmethoden)"
---
[TOC]

#### Beschreibung

Parses each string element into a datetime value. Elements that cannot be parsed become the null datetime.

#### Argumente

<table style="table-layout: fixed; width: min(100%, 543px);"><colgroup><col style="width: 15.0%"><col style="width: 14.8%"><col style="width: 70.2%"></colgroup><tr><th><p><strong>Name</strong></p></th><th><p><strong>Typ</strong></p></th><th><p><strong>Beschreibung</strong></p></th></tr><tr><td><p>Format</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/"><u>string</u></a></p></td><td><p>(optional) format string used to parse each element</p></td></tr></table>

#### Rückgabewert [datetime](../../../standard-datentypen/datetime.md)[]

array of parsed datetime values (null datetime where parsing fails)

#### Beispiel

| `xxx` |
| --- |
