|
This function returns a string with the current date. The default format for the date string is the database format, i.e. 'Y-M-D H:M:S'. With an optional string type argument format can be defined for the for the date to be returned. |
||||
![]() |
Remember to always use the database format when accessing date type database fields. Optional parameters have been provided mainly for formatted output of dates in user forms. | ||||
Syntax: |
|||||
{DAT_VAR | STR_VAR}= date() or |
|||||
I/O parameters: |
|||||
Return value: |
|||||
|
|||||
Example: |
|||||
Declaration of Variables | |||||
|
|||||
![]() |
You need to add the time format (H,M,S) whenever arguments are being used. | ||||
![]() |
Functions and commands: Date and Time |