Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- </head>
- <body>
- <p id="demo"></p>
- <script type="text/javascript">
- var today, someday, text;
- today = new Date();
- someday = new Date();
- someday.setFullYear(2100, 1, 10);
- if (someday > today) {
- text = "Today is before 10th February 2100";
- }
- else {
- text = "Today is after 10th February 2100"
- }
- document.getElementById("demo").innerHTML = text;
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement