Date minus Date

For questions about using Classic.

Post » Tue Mar 22, 2011 4:26 pm

Hi all,
is it possible to get the difference between two dates in Construct. For example 22 March 2011 - 24 January 2011 and the result should be in days for example = 22 days? Most programming languages got a special command for this task, does Construct has something like this, too?
Any help would be appreciated :)

thanks in advance Unknown1111
B
1
G
1
Posts: 9
Reputation: 443

Post » Wed Mar 23, 2011 6:55 pm

There is the date object, however, it does not accept setting a date other than the current. I think it would be possible to calculate when setting any date is possible. For now, you would have to implement your own math.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests