Question about Microsoft Computers & Internet
I have to read the system date and i will increment date to 10 or 15 days
the data format will be like this
please any one guide me to solve this problem
var oneMinute = 60 * 1000 // milliseconds in a minute
var oneHour = oneMinute * 60
var oneDay = oneHour * 24
var oneWeek = oneDay * 7
So for your case (date for 10 days after today), we can declare like this:
var today = new Date();
var mm= today.getMonth();
var dd = today.getDate();
var yyyy = today.getFullYear();
var oneMinute = 60 * 1000; // milliseconds in a minute
var oneHour = oneMinute * 60;
var oneDay = oneHour * 24;
var dateInMS = today.getTime() + oneDay * 10;
var TargetDate = new Date (dateInMS)
document.write("Today is: " + mm + "/" + dd + "/" + yyyy);
document.write("10 days after today is: " + TargetDate);
P.S.: If this information was helpful, please rate this solution.
Posted on Mar 12, 2009
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Oct 18, 2013 | Computers & Internet
Sep 20, 2011 | Computers & Internet
Sep 03, 2011 | Computers & Internet
Jan 30, 2011 | Microsoft Windows XP Home Edition
Dec 22, 2010 | Computers & Internet
Aug 10, 2010 | Computers & Internet
Nov 14, 2009 | Sun Java Desktop System
Oct 14, 2008 | Computers & Internet
Sep 25, 2008 | Microsoft Windows XP Professional
Mar 25, 2008 | Computers & Internet
324 people viewed this question
Usually answered in minutes!