<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`DateValue`](DateValue) › [`parseFromString`](DateValue/parseFromString)
## DateValue.parseFromString() method
Create new DateValue from an input string.
**Signature:**
```typescript
static parseFromString(input: string): DateValue | null;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>input</code> | <code>string</code> | <p>An ISO 8601 date or datetime string.</p><p> 1.10.0</p> |
**Returns:**
[`DateValue`](DateValue)` | null`
## Example
parseFromString("2025-12-31") parseFromString("2025-12-31T23:59") parseFromString("2025-12-31T23:59:59") parseFromString("2025-12-31T23:59:59Z-07")