neoDate
A wrapper for the Day.js (javascript) library.
Version 2.5
Sample App:
https://visualneo.com/tutorials/neodate
neoDateInit
Purpose: |
add dayjs plugins to the main library |
Category: |
neoDate |
Syntax: |
neoDateInit
|
neoDateCreate
Purpose: |
create a date object and populate it with a specified date |
Category: |
neoDate |
Syntax: |
neoDateCreate dateObjectVariable "dateValue" "dateValueFormat"
dateObjectVariable required - name of dateObject e.g. [abcd] dateValue optional - value of date and time to be populated dateValueFormat optional - format of the dateValue string |
neoDateAsString
Purpose: |
populate the specified variable with the value of a date object, in the requested format |
Category: |
neoDate |
Syntax: |
neoDateAsString dateObjectVariable "outputFormat" outputVariable
dateObjectVariable required - name of dateObject e.g. [abcd] outputFormat required - desired format of the date string outputVariable required - variable to store the date string |
neoDateAsArray
Purpose: |
populate the specified variable with the value of a date object, as an array |
Category: |
neoDate |
Syntax: |
neoDateAsArray dateObjectVariable outputVariable
dateObjectVariable required - name of dateObject e.g. [abcd] outputVariable required - variable to store the components of the date object |
neoDateAsJSON
Purpose: |
populate the specified variable with the value of a date object, as a json object |
Category: |
neoDate |
Syntax: |
neoDateAsJSON dateObjectVariable outputVariable
dateObjectVariable required - name of dateObject e.g. [abcd] outputVariable required - variable to store the components of the date object |
neoDateGet
Purpose: |
get the value of a date+time component from within a specified date object, and save it in a specified variable |
Category: |
neoDate |
Syntax: |
neoDateGet dateObjectVariable "dateComponent" resultVariable
dateObjectVariable required - name of dateObject e.g. [abcd] dateComponent required - component e.g. 'hour' resultVariable required - variable to store result e.g. [myResult] |
neoDateChange
Purpose: |
set or adjust the value of a date+time component within a specified date object |
Category: |
neoDate |
Syntax: |
neoDateChange dateObjectVariable "changeComponent" "changeType" changeValue
dateObjectVariable required - name of dateObject e.g. [abcd] changeComponent required - component to be changed e.g. hour or minute or year changeType required - changeType e.g. To or By changeValue required - the value to be set or adjusted for the specified component |
neoDateQuery1
Category: |
neoDate |
Syntax: |
neoDateQuery1 dateObjectVariable "queryType" resultVariable
dateObjectVariable required - name of dateObject e.g. [abcd] queryType required - e.g. isLeapYear or daysInMonth resultVariable required - variable to store result of the enquiry |
neoDateDifference
Purpose: |
calculate the difference between two date objects in specified units and precision |
Category: |
neoDate |
Syntax: |
neoDateDifference firstDateObjectVariable secondDateObjectVariable "differenceUnit" differencePrecision resultVariable
firstDateObjectVariable required - name of first dateObject e.g. [abcd] secondDateObjectVariable required - name of second dateObject e.g. [wxyz] differenceUnit required - units of difference e.g. Seconds or Days or Years differencePrecision required - decimal points in returned value - 0 means Integer resultVariable required - variable to contain the stored result |