JSON date to JS date, we know that after the date type is converted to JSON, the returned data looks like this:
/date (1379944571737)/
But this date does not appear directly, because no one knows what it means, and here's a way to turn the JSON
creation of a JavaScript date object
Create a Date object:var objdate=new Date ([arguments list]);I have summarized the following 3 types of parametric forms:New Date ("month DD yyyy hh:mm:ss");The following hh:mm:ss is optional (the
Creation of a JavaScript date object
Create a Date object:var objdate=new Date ([arguments list]);I have summarized the following 3 types of parametric forms:New Date ("month DD yyyy hh:mm:ss");The following hh:mm:ss is optional (the
Original: JavaScript Date ObjectDate and Time object 1. IntroducedA Date object that is the object that operates on the date and time. The Date object operates on dates and times only through methods.2. Constructor 2.1 new Date (): Returns the
Original: JavaScript Date Object IntroductionDate and Time object 1. IntroducedA Date object that is the object that operates on the date and time. The Date object operates on dates and times only through methods.2. Constructor 2.1 new Date ():
This article mainly introduces the operation of date and time objects.
1. Introduce
1.1 Description
Date object that is the object of the action date and time. A Date object can operate on dates and times only through methods.
1.2 Properties
Date and Time object 1. IntroducedA Date object that is the object that operates on the date and time. The Date object operates on dates and times only through methods.2. Constructor 2.1 new Date (): Returns the current local date and timeParameters:
JavaScript all things in are objects: strings, numbers, arrays, functions ... In addition, JavaScript allows custom objects to be customized.JavaScript objectsJavaScript provides multiple built-in objects, such as String, Date, Array, and so on.
This article mainly describes the date and time objects of the operation, the specific contents are as follows
Directory1. Description: Describes the Date object.
2. Constructor: Describes several ways to introduce the constructor of the date
Date and Time objects
1. Introduce
Date object that is the object of the action date and time. A Date object can operate on dates and times only through methods.
2. Constructor function
2.1 New Date (): Returns the current local date and
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.