Futurebasic/Language/Reference/datestring

= DATE$ function =

Function
✔ Appearance ✔ Standard ✔ Console

Description
The  function reads the system clock and returns the current date as a string in the format:   (that is, the string returned contains two digit numerals each for month, day and year, separated by slash marks).

You can use the Toolbox routine  to get a date string that is formatted according to the international specifications set in the "Date & Time" control panel. See the sample program  to see how this is done.

Example
res/cd.gif image

Note
The  function only returns the last two digits of the year. To get the complete 4-digit year value, you can use the  Toolbox function (previously   - both are supported in FutureBasic), as follows: