diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-61376760-C576-51E0-85F2-34718F8DC321.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-61376760-C576-51E0-85F2-34718F8DC321.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,22 @@ + + + + + +Using +TDateTimeExplains how to set Date and Time. +
TDateTime()

The example below shows how to construct +a TDateTime object, initialising it to midnight 6th January +1996;

TDateTime dateTime(1996,EJanuary,5,00,00,00,000000);
+
Set()

When setting the day and month, subtract +one because the ranges are offset from zero. For example, to set the date +to 31st December 1996:

TDateTime dateTime; +TInt year=1996, month=12, day=31; +dateTime.Set(year,TMonth(month-1),day-1,0,0,0,0);
+
\ No newline at end of file