util/date.ql
An entity that may store a date (not time).
Constructor | Description |
---|---|
Date(_date) | Creates a new date with the given |
Function | Description |
---|---|
native static fun parse(str) | Creates a new date from a DD/MM/YYYY formatted string. |
native static fun now() | Gets a new date from the current time. |
native fun getDay() | Gives the day of the month, as a number starting at 1. |
native fun getDayName() | Gets the name of the day. |
native fun getMonth() | Gives the month of the year, as a number between 1-12. |
native fun getMonthName() | Gets the name of the month. |
native fun getYear() | Gives the year. |
Field | Description |
---|---|
java _date | The internal LocalDate object to store the date info. |
Creates a new date with the given date
.