Title: Message
|
This is Horrible - can it be changed
???
Regards Paul McKenzie Analyst Programmer SMSS Ltd.
----- Original Message -----
Sent: Wednesday, November 26, 2003 1:32
PM
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
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?
_______________________________________________ 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