toDate property

DateTime? get toDate

Returns the date time value of this string.

Example: '2023-01-01'.toDate -> 2023-01-01 00:00:00.000.

Implementation

DateTime? get toDate => .tryParse(this);