This article describes how to use the toDateString () method in JavaScript. it is the basic knowledge in JavaScript beginners. For more information, see JavaScript Date. the toDateString () method returns the human-readable Date part of a Date
The toDateString () method in JavaScript is described in detail, and the javascript closure is described in detail.
The JavaScript Date. toDateString () method returns the human-readable Date part of a Date object.Syntax
Date. toDateString ()
The
JavaScript toString () methodJavaScript Date Object Reference Manualdefinition and Usage:the toString () method converts a Date object to a string and returns the result.Syntax:dateobject.tostring ()return Value:A string representation of dateobject,
All programming languages have internal (or built-in) objects to create the basic functions of the language. An internal object is the language used to write Custom Code. The Code implements custom functions based on your imagination. JavaScript has
All programming languages have internal (or built-in) objects to create the basic functions of the language. An internal object is the language used to write Custom Code. The Code implements custom functions based on your imagination. JavaScript has
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,
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
var mydate = new Date ();Mydate.getyear (); Get Current year (2-bit)Mydate.getfullyear (); Get the full year (4-bit, 1970-????)Mydate.getmonth (); Get the current month (0-11, 0 for January) (add 1)Mydate.getdate (); Get current day
The JavaScript date.todatestring () method returns a date part of the human-readable form of a Date object.Grammar
Date.todatestring ()
The following are the details of the parameters:
NA
return value:
Returns the date part of the
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.