Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return the date in which ever format i've got to functio
Message
De
24/08/1998 06:29:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/08/1998 06:21:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00129237
Message ID:
00129241
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform