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 Technician 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 repair professionals here in the US.
click here to Talk to a Technician (only for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
May 04, 2017 | Sharp Office Equipment & Supplies
May 01, 2011 | Timex Analog Metal Field 40051 Watch for...
Mar 11, 2011 | Computers & Internet
Dec 22, 2010 | Computers & Internet
Dec 01, 2010 | Casio Parts Cash Register PC Desktop
Oct 17, 2010 | Samsung S3500i Cell Phone
Sep 07, 2010 | Lucent PARTNER18 Corded Phone
Jun 25, 2010 | Avaya 700340193 Corded Phone
Mar 25, 2008 | Computers & Internet
349 people viewed this question
Usually answered in minutes!