πŸ“†dateparser

dateparser is a natural language date/time parser for OutSystems applications. See below for the wide variety of formats dateparser will parse.

Installation

You can install dateparser from the OutSystems Forge component page: https://www.outsystems.com/forge/component-overview/14418/dateparserarrow-up-right

Public API

  • ServiceAPIMethod Parse

    Attempts to parse a string into a DateTime (exceptions are raised).

    • InputParameter String (Text, Mandatory)

    • InputParameter Type (Integer)

      Past = -1, Future = 1, None = 0

    • OutputParameter DateTime (DateTime)

  • ServiceAPIMethod TryParse

    • InputParameter String (Text, Mandatory)

      e.g.: may 27th

    • InputParameter Type (Integer)

      Past = -1, Future = 1, None = 0

    • OutputParameter DateTime (DateTime)

Examples

dateparser demo app

dateparser can parse a huge variety of date and time formats. Following is a small sample of strings that will be properly parsed. Parsing is case-insensitive and will handle common abbreviations and misspellings.

For the cases where temporal time is not specific, it's possible to set Type parameter to indicate if the parsing should take into consideration past or future dates.

Example:

Simple

Complex

Specific Dates

Demo

You can see the component demo herearrow-up-right.

Last updated