Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the date, year and month
Message
From
15/01/2002 12:47:40
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
To
15/01/2002 12:40:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00604905
Message ID:
00604964
Views:
30
Thank you very much Centin. I will use the same approach for week and month.
- Ravi
>*...
>>Instead do this :
>>
>>* Year back
>>thisform.oleControl1.Object.value = dtot(gomonth(date(),-12))
>>* Year forward
>>thisform.oleControl1.Object.value = dtot(gomonth(date(),12))
>>
Cetin
>
>If you would do it based on current value of datetimepicker :
>
>
>* Year back
>with thisform.oleControl1.Object
> .value = dtot(gomonth(ttod(.value),-12))
>endwith
>* Year forward
>with thisform.oleControl1.Object
> .value = dtot(gomonth(ttod(.value),12))
>endwith
>
Cetin
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Reply
Map
View

Click here to load this message in the networking platform