-
Notifications
You must be signed in to change notification settings - Fork 19
Frontend Macros External Macros
%CT::CurrentDate%%CT::Min_In_Sec%%CT::Hour_In_Sec%%CT::Day_In_Sec%%CT::Month_In_Sec%%CT::Year_In_Sec%
Returns the timestamp. This is a replacement for Date.now()
For Date Field. Quotation marks are required
'%CT::CurrentDate|toDate%'Result
'2022-10-22'For Datetime Field. Quotation marks are required
'%CT::CurrentDate|toDateTime%'Result
'2022-10-22T17:49'For Time Field. Quotation marks are required
'%CT::CurrentDate|toTime%'Result
'17:49'Returns the number of milliseconds in one minute.
Getting the difference between dates in minutes.
(%some_date_field|T% - %another_date_field|T%) / %CT::Min_In_Sec%
Returns the number of milliseconds in one hour
Getting the difference between dates in hours.
(%some_date_field|T% - %another_date_field|T%) / %CT::Hour_In_Sec%
Returns the number of milliseconds in one day
Getting the difference between dates in days.
(%some_date_field|T% - %another_date_field|T%) / %CT::Day_In_Sec%
Returns the number of milliseconds in one month
Getting the difference between dates in months.
(%some_date_field|T% - %another_date_field|T%) / %CT::Month_In_Sec%
Returns the number of milliseconds in one year
Getting the difference between dates in years.
(%some_date_field|T% - %another_date_field|T%) / %CT::Year_In_Sec%
Need more information? Check out the official documentation at jetformbuilder.com or contact Crocoblock Support