Syntax
const char *DToC( int date );
Arguments
date Date encoded as the integer YYYYMMDD, for example 20261201.
Return value
A pointer to the formatted text in a shared buffer.
Description
Format a `YYYYMMDD` date for display using the current `_SET_DATEFORMAT` string. For an empty date, the day, month and year fields are rendered as spaces while the separators remain. Copy the text if it must remain available after the next `DToC()` call.
Example
#include "xdev-wtui.h"
#include "xdev-wtui-set.h"
#include <stdio.h>
int main( void )
{
SetC( _SET_DATEFORMAT, "mm/dd/yyyy" );
puts( DToC( 19901010 ) );
return 0;
}