Datetime Constants
Accessing context datetime
Function | Description |
---|---|
| Returns the formula's context day |
| Returns the beginning of the context's week in |
| Returns the beginning of the context's month in |
| Returns the beginning of the context's year in |
| Returns the formula's context week start in |
| Returns the day of year from the context date |
| Returns the day of month from the context date |
| Returns the day of week from the context date |
| Returns the number of month from the context date |
| Returns the number of month from the context date |
| Returns the number of hour from the context time |
| Returns the number of minute from the context time |
| Returns the number of second from the context time |
| Returns the number of days in the context date |
Examples:
31.1.2011 00:01:00 | 1.2.2011 00:01:00 | 2.2.2011 00:01:00 | |
String contextDay() | 31.1.2011 | 1.2.2011 | 2.2.2011 |
String contextWeek() | 31.1.2011 | 31.1.2011 | 31.1.2011 |
String contextMonth() | 1.1.2011 | 1.2.2011 | 1.2.2011 |
String contextQuarter() | 1.1.2011 | 1.1.2011 | 1.1.2011 |
String contextYear() | 1.1.2011 | 1.1.2011 | 1.1.2011 |
int dateDayOfYear() | 31 | 32 | 33 |
int dateDayOfMonth() | 31 | 1 | 2 |
int dateDayOfWeek() | 1 | 2 | 3 |
int dateMonth() | 1 | 2 | 2 |
int dateYear() | 2011 | 2011 | 2011 |
int timeHour() | 0 | 0 | 0 |
int timeMinute() | 1 | 1 | 1 |
int timeSecond() | 0 | 0 | 0 |
Accessing actual date and time
Function | Description |
---|---|
| Returns the actual day in |
String actualDate() | Returns the actual day in dd.MM.yyyy format |
| Returns the actual week in |
| Returns the actual month in |
| Returns the actual quarter in |
| Returns the actual year in |
String actualTime() | Returns the current time in HH:mm:ss format |
String actualDateTime() | Returns the actual date and time in yyyy-MM-dd HH:mm:ss |
Accessing date interval values
Function | Description |
---|---|
| Returns the day used as Date from in date interval settings in |
String viewDateTo() | Returns the day used as Date to in date interval settings in yyyy-MM-dd format |
| Returns the time used as Time from in time interval settings in HH:mm:ss.SSS format |
| Returns the time used as Time to in time interval settings in HH:mm:ss.SSS format |