FUNCTIONS CORE

BuildDate()

Return the date and time when the xDev runtime was built

Syntax

Signature
BuildDate( ) --> cDateTime

Arguments

None.

Return value

A text such as "Nov 19 2026 10:15:00": the month, the day, the year and the time.

Description

Show BuildDate() in an About window or write it into a log to know which xDev built the program.

Notes

Version( VERSION_BUILD_DATE_STR ) and Version( VERSION_BUILD_TIME ) give the two parts alone.

Example

BuildDate.prg
#include "version.ch"

PROCEDURE Main()

   Check( 'BuildDate() has 20 characters    ', Len( BuildDate() ), 20 )
   Check( 'date and time of Version()       ', BuildDate(), Version( VERSION_BUILD_DATE_STR ) + " " + Version( VERSION_BUILD_TIME ) )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output

BuildDate() has 20 characters    OK
date and time of Version()       OK

See also