currentDate()



This function returns a string representing the current server date, formatted using the server's date formatting and separator settings.  It is typically used on the value property of an output field widget as follows:

js: currentDate()

Parameters:

  • edit code - Optional numeric edit code used to format the date

  • full year format - Optional true/false value indicating that the year should be displayed in the format of YYYY, rather than YY.