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

    Function getRoundedDateTime

    • Round down a datetime

      Parameters

      • date: Date
      • precision: number | "day" | "hour" | "minute"

        Precision in milliseconds (eg, 1000 to round down to seconds, 86400*1000 to round down to a day)

      Returns Date

      • Rounded datetime