← All docs

date_parse()

Parses a date/time string into its components, warnings, and errors.

date_parse()

function date_parse(string $datetime): array

Parses a date/time string into its components, warnings, and errors.

Parameters:

  • $datetime (string)

Returns: array

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how date_parse is implemented in the compiler, see the internals page.