Run ยป
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <script> var currentDate = new Date(); // Mon Nov 08 2020 09:38:46 GMT+0700 (Indochina Time) currentDate.setDate(currentDate.getDate() + 1); alert(currentDate); // return -> Mon Nov 09 2020 09:38:46 GMT+0700 (Indochina Time) </script> </body> </html>