Help Center
Help CenterFreeBASIC

Datefunction

Returns the current system date as a string

Date and Time Functionsfunctiondocumented

Syntax

Declare Function Date ( ) As String

Return value


Returns the current system date, in the format mm-dd-yyyy

Description


None

Remarks

Usage


result = Date[$]

Differences from QB


  • The QB DATE statement (to set the system date) is now called SetDate.
  • The string type suffix "$" is required in the -lang qb dialect.
  • The string type suffix "$" is optional in the -lang fblite dialect.
  • The string type suffix "$" is ignored in the -lang fb dialect, warn only with the -w suffix compile option (or -w pedantic compile option).

See also


Example


Print Date ' prints the current date


Reference

  • Documented in KeyPgDate.html