Date Functions

Blitz3D Forums/Blitz3D Beginners Area/Date Functions

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ahhh, almost there then. If that DateNumber function is accurate, which I'm sure it is, then I'm almost there. If I subtract the earlier date from the later date, then I get the number of days which have passed between the two dates. All I need now is to know how to convert that into months and years. Can't quite work out how to do that at the moment because years and months all have different amounts of days in them. I suppose I could just count backwards and check the days in each month and year as I go, but it's not very efficient and I'm sure there's an algorithm to do it. Any ideas?