xHarbour Reference Documentation > Function Reference |
Formats a date as "dd. Month yyyy"
DMY( [<dDate>], [<lPeriod>] ) --> cDate
The function returns the formatted date as a character string. The string contains the month name. A two digit year is inserted when SET CENTURY is OFF.
See also: | MDY(), SET CENTURY, SET DATE |
Category: | CT:DateTime , Date and time |
Source: | ct\dattime2.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays formatted dates. PROCEDURE Main LOCAL dDate := StoD( "20061101" ) ? DMY( dDate ) // result: 1 November 06 ? DMY( dDate, .T. ) // result: 1. November 06 SET CENTURY ON ? DMY( dDate, .T. ) // result: 1. November 2006 RETURN
http://www.xHarbour.com