I have a field 'F_MONTH' with datatype string.
Now i want to get the value from F_MONTH, and display it on DateTimePicker1
component.
For example: 03 will display March, 02 will display February.
I know 29th of Februrary isn't a valid date, and i don't even have this value
in my database, the value just come out by itself. Try to drop a
DateTimePicker1 component, and set its format property to 'MMM', then on
buttonA click event write the following code then you'll get what error i mean:
ButtonAClick Event :
DateTimePicker1.Date := recodemonth(Now, StrToInt('02'));
See i don't have any value with '29', i only pass 02 and want it to return me
"February".
Thanks again.
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
Hi,
the 29th of february in 2005 is indeed an invalid date, you should trust to the
errormessage ,-)
So if you tell us exactly what you really want to do, we might provide you with
a solution...
Bob
> But it give me the following error :
> "2005/2/29 is not a valid date and time" .
>
> What's wrong with the code ? and how should i get it fixed ? Thanks in
> advance
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "delphi-en" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hrbdc4f/M=362131.6882499.7825260.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1122638083/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/