Get Date
1, Date ()
--Returns the date and time of the day.
2, GetDate ()
--Returns one day of one months from the Date object (1 ~ 31).
3, Getday ()
--Returns one day of the week from the Date object (0 ~ 6).
4, GetMonth ()
--Returns the
Date object: Number of milliseconds from January 1, 1970 (World Standard Time)This article refer to MDN do detailed finishing, convenient for everyone to refer to MDN
constructor function:
1.new Date (); Creates a Date object based on the current
This article mainly sorts out the JS Date processing function, which is a small summary of my recent javascript study. Here I will share it with you to get the Date.
1. Date ()
-- Returns the date and time of the current day.
2. getDate ()
--
About JS Date processing function, jsdate
Get date
1. Date ()
-- Returns the date and time of the current day.
2. getDate ()
-- Returns a day of a month from the Date object (1 ~ 31 ).
3. getDay ()
-- Returns a day of the week from the Date object (0
This article mainly introduces the JavaScriptDate object in detail and introduces operations on Date and Time objects. If you are interested, refer to this article to introduce operations on Date and Time objects, the details are as
The Date object is used to process the Date and time. Syntax for creating a Date object: varmyDatenewDate () Note: The Date object automatically saves the current Date and time as its initial value. Date object attribute FF: Firefox, IE:
Explanation of JavaScript built-in objects
Abstract: JavaScript is an object-oriented programming language (OOP ). The OOP language enables us to customize object and variable types. (In fact, it is only object-based and does not fully possess the
The JS Date object is used to process the date and time.
To create the syntax for a Date object:
var mydate=new Date ()
The Date object automatically saves the current date and time as its initial value.
The following 5 kinds of parameter form are:
1.NumberJavaScript has only one numeric type, can have decimals or not, and can use scientific notation.var y=123e5; // 12300000 var z=123e-5; // 0.00123JavaScript is not a type language. Unlike many other programming languages, JavaScript does
Date object
The Date object is used to process the Date and time.
Syntax for creating a Date object:
Var myDate = new Date ()
Note: The Date object automatically saves the current Date and time as its initial value.
Date Object Attributes
FF:
Document directory
Ecmascript Basics
Ecmascript Operator
Ecmascript statement
Ecmascript Function
Boolean object
Number object
String object
Array object
Math object
Date object
Regexp object
The javascript interpreter in Flash uses
Original: Js Date weeping Blood finishingThe JS Date object is used to process the date and time.To create the syntax for a Date object:var mydate=new Date ()The Date object automatically saves the current date and time as its initial value.There
Document directory
Syntax for creating a date object:
The date object is used to process the date and time.Syntax for creating a date object:
var myDate=new Date()
Note: The date object automatically saves the current date and time as its
The Date object is used to process dates and times.
To create the syntax for a Date object:
var mydate=new Date ()
The Date object automatically saves the current date and time as its initial value.
The following 5 kinds of parameter form are:
This article mainly introduces the date and time objects of JavaScriptDate. For more information, see
Date and Time object
1. Introduction
Date object, which is the object that operates on the Date and time. The Date object can only operate on the
This article mainly introduces the date and time objects of JavaScriptDate. For more information, see
Date and time object
1. Introduction
Date object, which is the object that operates on the Date and time. The Date object can only operate on the
Create
var d=new Date ();
Note that the value of the month in JavaScript is from 0 to 11 (0 for January).
Set Date and time values
There are two ways to set date and time values:
1, only to declare the number of milliseconds from January 1, 1970 12
Date object Introduction
JS has objects dedicated to date and time processing.
Date object attributes:
Attribute
Description
FF
IE
Constructor
Returns a reference to the date function that creates this object.
1
One, time stamp conversion date1 functionformatdate (datetime) {2 //Slice (-2) filters out more than 0 in front of the 10th period when the month day is obtained3 varYear =datetime.getfullyear (),4Month = ("0" + (DateTime.)GetMonth()
2. Common functions for Date objects2. Common functions for Date objects Date Object method
Method
Description
Date ()
Returns the date and time of day.
GetDate ()
Returns the day of the one
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.