Get Month from Number

phcphc
edited 4:30AM in FastReport 4.0
I have a access database that I have an ADO connection with in delphi. I have a data field with the Month of the year eg 1..12 I want to display it on the report as JAN..DEC

I have tried to format it in the SQL statement but cannot get it to work.
If I use the (FORMAT( MONTH( aMonth),"mmm")) as StartingMonth it only ever returns JAN
I have tried the access MonthName function but does not work through ADO.

Is there a way to format the display in Fast Reports

Comments

  • phcphc
    edited 4:30AM
    Got it to work with the SQL

    FORMAT( DATEADD( "m", [aMonth]-1, "1/1/2000"), "mmm")

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.