Functions

Date

Return the system date as a date value

Syntax

Signature
int Date( void );

Arguments

No arguments.

Return value

The current local date, encoded as YYYYMMDD.

Description

Read the calendar date from the local system clock. Use it as the initial value for a date field or as a reference date for comparisons. The result is a `YYYYMMDD` integer. `DToC()` applies the current date display format, and `Day()`, `Month()` and `Year()` retrieve the individual fields.

Example

date.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   puts( DToS( Date() ) );

   return 0;
}