Showing posts with label date. Show all posts
Showing posts with label date. Show all posts
Tuesday, March 10, 2015
Funny javascript date function
Whoever invented the javascript Date function, is/was a funny person. It goes like this:
var t = new Date;
var day = t.getDate(); // returns the actual day of the month; like 1-31
var Month = t.getMonth(); // returns the 0-based index of the month; like 0-11
So to get the real month value, you need to do
var Month = t.getMonth()+1;
Now Im sure theres a whole lot smart reasons for doing it like this. But its damn not logical. Why are days not 0-based? Or years? I guess its just to keep things complicated.
Anyway, then comes the getYear() and getFullYear(). Why did they ever create the method getYear()? I guess its to have me enter a blog post. :-)
Read more »
var t = new Date;
var day = t.getDate(); // returns the actual day of the month; like 1-31
var Month = t.getMonth(); // returns the 0-based index of the month; like 0-11
So to get the real month value, you need to do
var Month = t.getMonth()+1;
Now Im sure theres a whole lot smart reasons for doing it like this. But its damn not logical. Why are days not 0-based? Or years? I guess its just to keep things complicated.
Anyway, then comes the getYear() and getFullYear(). Why did they ever create the method getYear()? I guess its to have me enter a blog post. :-)
Labels:
date,
function,
funny,
javascript
Friday, January 30, 2015
Check Installation Date of Your Windows

How to Check Installation Date of Your Windows??
Now You Can Check The Installation Date of Your Windows So then You may Know How Longer You Use Your Windows.and also You will get the Complete Information about Your operating Windows System.Just Follow the below Urdu Tutorial.Please Share this Informative Article With Your Friends. Many Blessings to all of you my beloved humanity.
- Click on Start . Type cmd in Windows search and press enter to bring up Command Prompt.
- Now type systeminfo and press enter.
Once all the information is loaded up, scroll upwards to see the exact date and time under Original Install Date as also illustrated by the screenshot above.
So it took about 94 days for me to screw up my Windows install. This can come in handy when you want to know on average how long it takes before you are in need to reinstall your Windows.
Lets see if anyone here can bring up an older install date of Windows than me which is still in good shape to work with.



Subscribe to:
Posts (Atom)