Detailed description of the JavaScript Date object, javascriptdate
This article describes how to operate Date and Time objects.
Directory1. Introduction: Describes the Date object.
2. constructor: describes several methods of the constructor of the
The following example is a JavaScript date Formatting Function written using an independent function, an independent format function. Back to the knowledge point of formatting, we examine how to implement and what principles are used. One of the
Front.
The Date object is a data type built into the JavaScript language and is used to provide an operational interface for date and time. The Date object was created on the basis of the Java.util.Date class in earlier Java, and for this reason,
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
This indicates the current object. If this is used globally, it indicates the current page Object window. If this is used in the function, this indicates what is called Based on the object on which the function is called at runtime. We can
In addition to creating objects, the constructor (constructor) does another useful thing-automatically sets the prototype object (prototype objects) for the new object created. The prototype object is stored in the Constructorfunction.prototype
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 ():
The value (object) of the reference type is actually an instance of the reference type. Next, we will introduce the Date of the javascript reference type and the Array through this article, for more information about the Javascript reference type,
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
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.