The JavaScript date.getminutes () method returns minutes on the specified date at local time. The value returned by getminutes is an integer between 59 and 0.Grammar
Date.getminutes ()
The following are the details of the parameters:
NA
return value:
Returns a minute at the specified date, based on the local time.Example:
This will produce the following results:
Getminutes ():
This article mainly introduces how to get the summary of current date and time and other date operations by js. Interested partners can refer to the examples in this article to share common scenarios of javascript time operations, for your reference, the specific content is as follows:
Var myDate = new Date (); myDate. getYear (); // obtain the current year (2 digits) myDate. getFullYear (); // obtain the complete year (4 digits, 1970 -????) MyDate. getMonth (); // obtain the current month (0-
Time Processing in javascript and javascript Time ProcessingVar myDate = new Date ();MyDate. getYear (); // obtain the current year (2 digits)MyDate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)MyDate. getMonth (); // obtain the current month (0-11, 0 represents January)MyDate. getDate (); // obtain the current day (1-31)MyDate. getDay (); // obtain X of the current week (0-6, 0 indicates Sunday)MyDate. getTime (); // obtain the current time (milliseconds starting from 1970.1
Js obtains the summary of current date and time and other date operations.
The examples in this article share common scenarios of javascript time operations for your reference. The specific content is as follows:
Var myDate = new Date (); myDate. getYear (); // obtain the current year (2 digits) myDate. getFullYear (); // obtain the complete year (4 digits, 1970 -????) MyDate. getMonth (); // obtain the current month (0-11, 0 represents January) myDate. getDate (); // obtain the current day (1-3
Js method for obtaining time functions and extended functions built-in Date functions
Var mydate = new Date ();Mydate. getYear (); // obtain the current year (2 digits)Mydate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)Mydate. getMonth (); // obtain the current month (0-11, 0 represents January)Mydate. getDate (); // obtain the current day (1-31)Mydate. getDay (); // obtain X of the current week (0-6, 0 indicates Sunday)Mydate. getTime (); // obtain the current time (millis
(); // obtain the complete year (4 digits, 1970 -????) MyDate. getMonth (); // obtain the current month (0-11, 0 represents January) myDate. getDate (); // obtain the current day (1-31) myDate. getDay (); // obtain the current day X (0-6, 0 represents Sunday) myDate. getTime (); // obtain the current time (milliseconds starting from 1970.1.1) myDate. getHours (); // obtain the current hour (0-23) myDate. getMinutes (); // get the current number of mi
Copy codeThe Code is as follows:$ (Function (){Var mydate = new Date ();Var t = mydate. toLocaleString ();/* Alert (t );*/$ ("# Time"). text (t );$ ("# Time"). load ("Untitled-1.html ");}); Use the built-in Date function to get the JavaScript time.Var mydate = new Date ();Mydate. getYear (); // obtain the current year (2 digits)Mydate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)Mydate. getMonth (); // obtain the current month (0-11, 0 represents January)Mydate. getDate (); /
)
Mydate. getMinutes (); // obtain the current number of minutes (0-59)
Mydate. getSeconds (); // obtain the current number of seconds (0-59)
Mydate. getMilliseconds (); // obtain the current number of milliseconds (0-999)
Mydate. toLocaleDateString (); // obtain the current date
Var mytime = mydate. toLocaleTimeString (); // obtain the current time
Mydate. toLocaleString (); // obtain the date and time
Date and Time script library method list
Date.
JS to obtain the current date and time and other operations 2008-07-28-06-11 17: 24var mydate = new date ();Mydate. getyear (); // obtain the current year (2 digits)Mydate. getfullyear (); // obtain the complete year (4 bits, 1970 -????)Mydate. getmonth (); // obtain the current month (0-11, 0 represents January)Mydate. getdate (); // obtain the current day (1-31)Mydate. getday (); // obtain X of the current week (0-6, 0 indicates Sunday)Mydate. gettime (); // obtain the current time (millisecon
Js obtains the current date and time and other operationsVar myDate = new Date ();MyDate. getYear (); // obtain the current year (2 digits)MyDate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)MyDate. getMonth (); // obtain the current month (0-11, 0 represents January)MyDate. getDate (); // obtain the current day (1-31)MyDate. getDay (); // obtain X of the current week (0-6, 0 indicates Sunday)MyDate. getTime (); // obtain the current time (milliseconds starting from 1970.1.1)
VarmyDatenewDate (); myDategetYear (); get the current year (2 digits) myDategetFullYear (); get the complete year (4 digits, 1970 -????) MyDategetMonth (); get the current month (0-11,
Var myDate = new Date (); myDate. getYear (); // obtain the current year (2 digits) myDate. getFullYear (); // obtain the complete year (4 digits, 1970 -????) MyDate. getMonth (); // obtain the current month (0-11, 0 represents January) myDate. getDate (); // obtain the current day (1-31) myDate. getDay (); // o
A relatively good js Date and Time Acquisition Function is comprehensive and easy to expand. MyDate. getYear (); // obtain the current year (2 digits)
MyDate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)
MyDate. getMonth (); // obtain the current month (0-11, 0 represents January)
MyDate. getDate (); // obtain the current day (1-31)
MyDate. getDay (); // obtain X of the current week (0-6, 0 indicates Sunday)
MyDate. getTime (); // obtain the current time (milliseconds startin
VaR mydate = new date ();Mydate. getyear (); // obtain the current year (2 digits)Mydate. getfullyear (); // obtain the complete year (4 bits, 1970 -????)Mydate. getmonth (); // obtain the current month (0-11, 0 represents January)Mydate. getdate (); // obtain the current day (1-31)Mydate. getday (); // obtain X of the current week (0-6, 0 indicates Sunday)Mydate. gettime (); // obtain the current time (milliseconds starting from 1970.1.1)Mydate. gethours (); // obtain the current hour (0-23)Myd
[To] http://www.cnblogs.com/xiangdingdingVictory/archive/2010/12/30/1922364.html
Jquery date calculation
VarmyDate = new Date ();MyDate. getYear (); // obtain the current year (2 digits)MyDate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)MyDate. getMonth (); // obtain the current month (0-11, 0 represents January)MyDate. getDate (); // obtain the current day (1-31)MyDate. getDay (); // obtain X of the current week (0-6, 0 indicates Sunday)MyDate. getTime (); // obtain the cu
Js get current date
Js to obtain the current Date and time and other operations 2008-07-28-06-11 17: 24var myDate = new Date ();MyDate. getYear (); // obtain the current year (2 digits)MyDate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)MyDate. getMonth (); // obtain the current month (0-11, 0 represents January)MyDate. getDate (); // obtain the current day (1-31)MyDate. getDay (); // obtain X of the current week (0-6, 0 indicates Sunday)MyDate. getTime (); // obtain
MyDate. getYear (); // obtain the current year (2 digits)
MyDate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)
MyDate. getMonth (); // obtain the current month (0-11, 0 represents January)
MyDate. getDate (); // obtain the current day (1-31)
MyDate. getDay (); // obtain X of the current week (0-6, 0 indicates Sunday)
MyDate. getTime (); // obtain the current time (milliseconds starting from 1970.1.1)
MyDate. getHours (); // obtain the current hour (0-23)
MyDate.
Function set for obtaining time in JavaScript, which is obtained by javascript
Next we will introduce the function set for js to get time.
$(function(){var mydate = new Date();var t=mydate.toLocaleString();$("#time").text(t);$("#time").load("Untitled-1.html"); });
Use the built-in Date function to get the JavaScript time.
Var mydate = new Date (); mydate. getYear (); // obtain the current year (2 digits) mydate. getFullYear (); // obtain the complete year (4 digits, 1970 -????) Mydate. getMonth
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.