Title: Message

Or, as my reply that only went to Tracey said…

 

LongMonthNames: array[1..12] of string;

In SysUtils

 

Paul

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stacey Verner
Sent: Wednesday, 26 November 2003 1:32 p.m.
To: [EMAIL PROTECTED]
Subject: FW: [DUG] IntToMonth?

 

NOTE to all. Hitting reply to a dug message now sends it to the  poster, not the DUG!

 

 

 The EncodeDate option takes care of that.

 

// Build the date from the LMonth integer

LDate := EncodeDate(0, LMonth, 0);

 

// Get the name of the month in the new date.

LMsg := FormatDateTime('mmmm', LDate);

 

Stacey 

 

 -----Original Message-----
From: Tracey Maule [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 November 2003 12:48
To: Stacey Verner
Subject: Re: [DUG] IntToMonth?

well, i am looking for something which takes an integer, as i am only receiving a string value of maybe '2' or '11', not the date.

 

----- Original Message -----

Sent: Wednesday, November 26, 2003 12:43 PM

Subject: RE: [DUG] IntToMonth?

 

Take a look at DateUtils.pas (Delphi 6 and up i think?).

 

Also try:

LDate := EncodeDate(0, LMonth, 0);

LMsg := FormatDateTime('mmmm', LDate);

 

Stacey

-----Original Message-----
From: Tracey Maule [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 November 2003 12:32
To: [EMAIL PROTECTED]
Subject: [DUG] IntToMonth?

Hi guys

 

I have a feeling this has been asked before (maybe even by me)

 

Is there any function which can convert an integer value into a month name? Or am i stuck with the case statement?

 

Tracey
Software Developer / Web Master
Logis
[EMAIL PROTECTED]
(027) 213-1065

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to