|
FlexCel Studio for VCL/LCL
|
This method has been deprecated. Use TryFormatDateTime1904 instead.
function TryFormatDateTime(const Fmt: string; value: TDateTime): string; deprecated;
AnsiString TryFormatDateTime(const AnsiString Fmt, TDateTime value);
|
Parameters |
Description |
|
const Fmt: string |
Excel format to apply to the date. |
|
value: TDateTime |
DateTime we want to format. |
A string with the formatted datetime.
Excel has two different date systems: one starts at 1900 and the other at 1904. While 1900 is the most common (it is the default in Windows), 1904 is used in Macs and also might be set in Excel for Windows too in the options dialog.
This method assumes always 1900 dates, so it is not safe to use and you should use "1904" overloads instead.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|