_COMPILEDATE$
The _COMPILEDATE$ function returns the date when a program was compiled.
Syntax
- compDate$ = _COMPILEDATE$
Description
- Returns a STRING listing the date as MMM DD YYYY. Note the first D is replaced by a space for days 1-9 in a month.
- The purpose of this information is, that a program may print it in "About" boxes, splash screens or in debug logfiles.
Availability
-
none
-
v4.5.0
-
yes
-
yes
-
yes
Examples
- Showcasing all general compiler information functions.
'Getting info where and when a program was compiled. PRINT: PRINT " This program was compiled on "; COLOR 15: PRINT _COMPILEDATE$; COLOR 7: PRINT " at "; COLOR 15: PRINT _COMPILETIME$; COLOR 7: PRINT " by " COLOR 7: PRINT " using "; COLOR 15: PRINT _COMPILERVERSION$; " "; _OS$; COLOR 7: PRINT "." END |
- This is how the output could look like, the exact data actually depends on the circumstances during the compile operation.
This program was compiled on Mar 6 2026 at 19:43:21 by using QB64-PE v4.5.0 [WINDOWS][64BIT]. |
See also