Objective Grid: Displaying international dates

Article ID: 516
Last updated: 16 Apr, 2018
Article ID: 516
Last updated: 16 Apr, 2018
Revision: 3
Views: 1650
Posted: 12 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


Do you have a control that displays international dates as specified in the system settings?


Cause



Action


Take a look at the file datectrl.cpp and datectrl.h in the dbfbrows sample. It implements a date control for international dates.

Check out the class reference for CGXDateTimeCtrl for information about this cell type.

Alternatively, you can specify date formatting with CGXStyle::SetFormat(GX_FMT_DATE).

Example:

SetExpressionRowCol(nRow+1, 6, _T("01/01/18"));
SetStyleRange(CGXRange(nRow+1, 6),CGXStyle().SetFormat(GX_FMT_DATE));

This article was:   Helpful | Not helpful
Report an issue
Article ID: 516
Last updated: 16 Apr, 2018
Revision: 3
Views: 1650
Posted: 12 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category