Hi to all!

There are two functions in Visual Basic DiffDate and AddDate that used when smb want to substract/add two dates. Is those analogs in WinAPI ?

Posted on 2003-07-20 09:28:04 by Mike
i don't know of any APIs in Windows that do such a thing (never had to do it within a regular app, i guess, while using Asm), but if you don't mind translating some source, PHP's mkdate isn't too bad a starting place.
Posted on 2003-07-20 21:06:47 by jademtech
I had an app where I needed to do alot of adding/subtracting dates - what I ended up doing was converting the dates to julian dates - doing the addition and subtractions and then converting them back into normal dates - worked pretty well and since I was listing the dates in a listview it was easy to sort the dates by sorting their julian equivalents.

I used the algo listed on the following page.

Posted on 2003-07-20 22:06:35 by MurkyT