SmartPascal
LongMonthNames
Variable
An array of days of the month names, starting 1 = January SysUtils unit
  var LongMonthNames : array[1..12] of string;
  array[ 1] := 'January';
  array[ 2] := 'February';
  array[ 3] := 'March';
  array[ 4] := 'April';
  array[ 5] := 'May';
  array[ 6] := 'June';
  array[ 7] := 'July';
  array[ 8] := 'August';
  array[ 9] := 'September';
  array[10] := 'October';
  array[11] := 'November';
  array[12] := 'December';
 
Description
The LongMonthNames variable provides an array of full string names of the months of the year.
 
Since it is an array, you can update the default values (set by the Windows locale), but this is not advised.
Related commands
LongDayNames An array of days of the week names, starting 1 = Sunday
ShortDayNames An array of days of the week names, starting 1 = Sunday
ShortMonthNames An array of days of the month names, starting 1 = Jan
 
Example code : Show the month name of month 12
// Full Unit code.
// -----------------------------------------------------------
// You must store this code in a unit called Unit1 with a form
// called Form1 that has an OnCreate event called FormCreate.
 
unit Unit1;
 
interface
 
uses
  SysUtils,   // Unit containing the LongMonthNames command
  Forms, Dialogs;
 
type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  end;
 
var
  
Form1: TForm1;
 
implementation
{$R *.dfm} // Include form definitions
 
procedure TForm1.FormCreate(Sender: TObject);

var
  month  : string;

begin
  month  := LongMonthNames[12];
  ShowMessage('Month 12 = '+month);
end;
 
end.
Hide full unit code
   Month 12 = December