FORMATDATETIME
Hi,
I am trying to get a line similar to this to print out: "Report Name - April 2004". I am trying to place this code in the Memo property of a TfrMemoView object: Report Name - [FORMATDATETIME(MMMM, DATE)] [YEAROF(DATE)]. When I go to preview my report, I get an error.
The error states: "Undefined symbol "MMMM". I don't understand. When I look the parameter for that format option, "MMMM" is valid.
Is this a bug? Or am I simply missing someting
Randel
I am trying to get a line similar to this to print out: "Report Name - April 2004". I am trying to place this code in the Memo property of a TfrMemoView object: Report Name - [FORMATDATETIME(MMMM, DATE)] [YEAROF(DATE)]. When I go to preview my report, I get an error.
The error states: "Undefined symbol "MMMM". I don't understand. When I look the parameter for that format option, "MMMM" is valid.
Is this a bug? Or am I simply missing someting
Randel
Comments
[FORMATDATETIME('MMMM', DATE)]. But if You need date formatting You can use the following method:
[DATE #Dyyyy.mm.dd.] where the # tells the engine to interpret the followings as the formatting expression, D means that the formatting is a date-format. The letters of the expression and the '.' mean the same as Delphi's FormatDateTime function's parameters.
Regards:Alex
I thought I had tried single-quotes, but I must not have. Thanks for your help.
Randel
Alex