computer






 

Question by  joantheresa (1421)

What is the javascript adding date?

I need to understand javascript.

 
+7

Answer by  erulogos (14)

Assuming this means the date from which all others are counted from, commonly referred to as the epoch, Javascript begins counting from January 1, 1970.

 
+6

Answer by  tedros (211)

To output he date with Javascript use getDate() to find the date, getFullYear() to find the year and getMonth() to find the month.

 
+6

Answer by  Dennis61 (11)

To work with dates in Javascript you should use the Date object. An example would be: var myDate=new Date() This object will then hold the current date and time as its initial value. If you want to print today's date and time you can simply use this code example: document. write(Date());

 
+6

Answer by  Zeeta (261)

At first, tell the browser you are giving JavaScript commands. Therefore, type after the BODY tag:

 
+4

Answer by  kaiharris (10)

Date Object Methods: 1.) getDate(): Returns the day of the month 2.) getDay(): Returns the day of the week 3.) getFullYear(): Returns the year 4.) getHours(): Returns the hour 5.) getMinutes(): Returns the minutes 6.) getMonth(): Returns the month 7.) getSeconds(): Returns the seconds

 
+4

Answer by  helol25 (680)

Well I'm guessing it's the date that your java scrip program comes up to date. Thus that is the reason it's called a java script date. I'm not that sure though.

 
+4

Answer by  dudz (84)

the javascript adding date is an inbuilt support in adding date and time using the date object. this is a predefined class offered by javascript. this class not only makes the manipulation of dates easier but it handles time as well. using the date object is useful when you want to display date and time.

 
+2

Answer by  senthilkumar (299)

To add date in javascript you have to use setdata() and getdata(). to create a date //create a date var myDate=new Date(); these semicolon is so necessary to complete this process,without that semicolon the process can't accepted. You can create date,day,year,also using this method.

 
You have 50 words left!