Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return the date in which ever format i've got to functio
Message
From
24/08/1998 06:29:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/08/1998 06:21:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00129237
Message ID:
00129241
Views:
32
>say i've got yyyy/mm/dd or yy/mm/dd or mm/yy/dd or mm/yyyy/dd
>i 've to do calculations on year part and return the date in the same format as it was given to the function.
Rahd,
More duplication to same question.
function docalculation
lparameters pdDate
lnYear = year(pdDate)
* Your cals here
* lnAddYears = your calc
* Add, subtract year
* return gomonth(pdDate, lnAddYears*12) 
* Add, subtract days
* return pdDate + lnAddDays
You don't need to do any conversion for dateformat.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform