Options
All
  • Public
  • Public/Protected
  • All
Menu

isodate-lite

Index

Functions

convertDatesToISOStrings

  • convertDatesToISOStrings(input: unknown): unknown
  • Converts all the date values of an object to ISO 8601 strings.

    This function only does a shallow conversion, it does not handle nested values.

    Parameters

    • input: unknown

    Returns unknown

convertISOStringsToDates

  • convertISOStringsToDates(input: unknown): unknown
  • Converts all valid ISO 8601 strings to date objects.

    This function only does a shallow conversion, it does not handle nested values.

    Parameters

    • input: unknown

    Returns unknown

isISODate

  • isISODate(input: unknown): boolean
  • Tests the input is a string that conforms to an ISO string format.

    Only tests the format, does not test the validity of the date (eg, 32nd of December, leap years etc)

    Parameters

    • input: unknown

    Returns boolean

Generated using TypeDoc