| |

VerySource

 Forgot password?
 Register
Search
View: 701|Reply: 1

How to determine the date of a control is not greater than the current date

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

Post time: 2020-1-28 12:40:02
| Show all posts |Read mode
How to determine the date of a control is not greater than the current date
Reply

Use magic Report

0

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-7 12:00:01
| Show all posts
Convert dates to integers and compare them
You can also extend the Date class
Such as
/ ** Constants used for time computations * /
Date.SECOND = 1000 / * milliseconds * /;
Date.MINUTE = 60 * Date.SECOND;
Date.HOUR = 60 * Date.MINUTE;
Date.DAY = 24 * Date.HOUR;
Date.WEEK = 7 * Date.DAY;
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list