Helpful
    Preparing search index...

    Type Alias ZDateTimeOptions<T>

    Options for performing operations on a ZDateTime object.

    type ZDateTimeOptions<T> = {
        culture?: string;
        fallback?: T;
        format?: string;
        supportedFormats?: string[];
        timeZone?: string;
    }

    Type Parameters

    • T
    Index

    Properties

    culture?: string

    The culture language to use.

    If this is not specified, then you can assume that the user's system culture is used.

    fallback?: T

    An optional fallback value for invalid date formats or bad parsing.

    format?: string

    The string format to output.

    supportedFormats?: string[]

    A list of supported formats when guessing a date.

    If this is falsy, then the standard formats in ZDateFormats is used.

    timeZone?: string

    The timezone to force.

    If this is not specified, then you can assume the user's current timezone.