Hierarchy

  • Dates

Properties

_serverFormat: string = ''

Format of data as set in service center.

Methods

  • Function to be used in order to get the Time from a given Date

    Static

    Returns

    {string}

    Memberof

    OSFramework.Helper.Dates

    Parameters

    • _date: Date

    Returns string

  • Function used to check if the given date1 is minor than given date2

    Static

    Returns

    {boolean}

    Memberof

    OSFramework.Helper.Dates

    Parameters

    • date1: string

      Date to be checked if minor

    • date2: string

      Date to be checked if it's greater than date1

    Returns boolean

  • Function used to check if a given date is an OutSystems nullDate

    Export

    Memberof

    OSFramework.Helper.Dates

    Parameters

    • date: string | Date

    Returns boolean

  • Function used to check if a date is valid

    Returns

    {boolean}

    Memberof

    Dates

    Parameters

    • date: string

    Returns boolean

  • Function used to normalize the OutSystems Dates

    Static

    Returns

    {Date}

    Memberof

    Dates

    Parameters

    • date: string

    Returns Date

  • Function used to normalize the OutSystems DateTimes, used on scopes expecting a Date

    Static

    Returns

    {Date}

    Memberof

    Dates

    Parameters

    • date: string | Date
    • Optional normalizeToMax: any

    Returns Date

  • Function responsible for setting up the the server date format.

    Export

    Memberof

    OSFramework.Helper.Dates

    Parameters

    • date: string

      example of date.

    Returns void

Accessors

  • get ServerFormat(): string
  • Getter that allows to obtain the Server DateFormat

    Static

    Memberof

    OSFramework.Helper.Dates

    Returns string

Constructors