Lua → VBScript SwxWare v13.10
This function returns the current date according to the script user's location.
local sDate = CurDate() -- in "%d.%m.%Y" format
or if being used directly within a GSE property dialog, e.g. in a Say Date block to directly announce the current date to the caller:
This function returns a string value. The date is formatted like "%d.%m.%Y".
Note: this function is not the same as the Lua build-in function os.date().
While os.date() returns the current date of the SwyxServer machine when being used within a call routing script, CurDate() uses the Server Script API function PBXUser.Now() to get the script user's date according to his location (timezone) configuration within SwyxWare. This is not necessarily the same.
By Tom Wellige