Date and Time
The following functions are used to handle dates, time and calendar:
Method | Description | Available from version |
---|---|---|
Calendar | Returns an icon that displays a standard calendar window when clicked. The date selected in this window is inserted in the specified field of a form (or, in case of interval selection - in two fields). | |
CalendarDate | Returns an icon that displays a standard date selection window when clicked. The date selected in this window is inserted in the input field. | |
CalendarPeriod | Displays two input fields for dates "from" and "to" with icons. When clicked, these icons display date selection window. The first field has a drop-down list of days for selection of date "from". | |
ParseDateTime | Parses date and time using specified format. | |
ConvertDateTime | Converts date from the format of one of the sites into arbitrary format string. | |
MakeTimeStamp | Converts time from the string to the Unix format. | |
ConvertTimeStamp | Converts time from Unix format to the string in the site format. | |
AddToTimeStamp | Adds the Unix-форматеthe specified time span | to|
getmicrotime | Returns current time in Unix format. | |
FormatDate | Returns string formatted according to the specified format. | |
IsAmPmMode | Defines, if 12-hour time format is used. | |
FormatDateFromDB | Returns date in the site language. |
See Also
© «Bitrix24», 2001-2024