Categories > Date&time > rex_momentjs

Introduction

Parse, validate, manipulate, and display dates.

Reference : moment.js

Links


Categories > Date&time > rex_momentjsIntroductionLinksDependenceUsageSet dateFormat of date stringISO 8601 formatCustom formatFormat is validGet dateDisplay dateManipulationAddElapsed timeStart or end of date timeTime zone

Dependence

None

Usage

Action:Add toAction:Current date Action:Unix timestampAction:Set component Action:Date stringMoment objectExpression:UnixTimestamp Expression:Format Expression:YearExpression:MonthExpression:DateExpression:DayExpression:QuarterExpression:HoursExpression:MinutesExpression:SecondsExpression:MillisecondsExpression:StartOfYearExpression:StartOfMonthExpression:StartOfDateExpression:StartOfHourExpression:StartOfMinuteExpression:StartOfSecond... Expression:EndOfYearExpression:EndOfMonthxpression:EndOfDateExpression:EndOfHourExpression:EndOfMinuteExpression:EndOfSecond...

Set date

Format of date string

ISO 8601 format
Custom format

Format is composed by these components, and ignores non-alphanumeric characters.

Format is valid

Get date

Display date

Sample capx

Manipulation

Add

Sample capx

Elapsed time

Sample capx

Parameter prevDate

Add 1 at 2nd parameter to return float number. For example Expression:ElapsedYears( prevDate , 1 )

Start or end of date time

Sample capx

Each expression returns unix timestamp or date string

Time zone

rex_momenttimezonejs