dateToParts | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function dateToParts

    • Convert a date to msecs/days since the HareScript epoch (1-1-0001), ie the 'DATETIME parts'

      Parameters

      • date: ValidDateTimeSources

        The date to convert

      Returns { days: number; msecs: number }

      • The number of days and milliseconds since the January 1st 0001 assuming a Gregorian calendar since that epoch