# Table of Contents * [`%CT::CurrentDate%`](#ctcurrentdate) * [`%CT::Min_In_Sec%`](#ctmin_in_sec) * [`%CT::Hour_In_Sec%`](#cthour_in_sec) * [`%CT::Day_In_Sec%`](#ctday_in_sec) * [`%CT::Month_In_Sec%`](#ctmonth_in_sec) * [`%CT::Year_In_Sec%`](#ctyear_in_sec) ## `%CT::CurrentDate%` Returns the timestamp. This is a replacement for [`Date.now()`](https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Date/now) ### Example For Date Field. **_Quotation marks are required_** ```js '%CT::CurrentDate|toDate%' ``` Result ```js '2022-10-22' ``` For Datetime Field. **_Quotation marks are required_** ```js '%CT::CurrentDate|toDateTime%' ``` Result ```js '2022-10-22T17:49' ``` For Time Field. **_Quotation marks are required_** ```js '%CT::CurrentDate|toTime%' ``` Result ```js '17:49' ``` ## `%CT::Min_In_Sec%` Returns the number of milliseconds in one minute. ### Example Getting the difference between dates in minutes. ``` (%some_date_field|T% - %another_date_field|T%) / %CT::Min_In_Sec% ``` ## `%CT::Hour_In_Sec%` Returns the number of milliseconds in one hour ### Example Getting the difference between dates in hours. ``` (%some_date_field|T% - %another_date_field|T%) / %CT::Hour_In_Sec% ``` ## `%CT::Day_In_Sec%` Returns the number of milliseconds in one day ### Example Getting the difference between dates in days. ``` (%some_date_field|T% - %another_date_field|T%) / %CT::Day_In_Sec% ``` ## `%CT::Month_In_Sec%` Returns the number of milliseconds in one month ### Example Getting the difference between dates in months. ``` (%some_date_field|T% - %another_date_field|T%) / %CT::Month_In_Sec% ``` ## `%CT::Year_In_Sec%` Returns the number of milliseconds in one year ### Example Getting the difference between dates in years. ``` (%some_date_field|T% - %another_date_field|T%) / %CT::Year_In_Sec% ``` # Useful links [:small_orange_diamond: View source of current page](https://raw.githubusercontent.com/wiki/Crocoblock/jetformbuilder/Frontend-Macros---External-Macros.md)