For more information about js events, you can quickly master the js Event Effect code. Click () object. click () enables the object to be clicked.
Whether the closed object window has been closed; true/false
ClearTimeout (object) clears the set
The calendar reminder plug-in (created in pure javascript + css, without any additives) has simplified code and data can be read from the database. Function introduction:
1. Normal calendar functions.
2. etc.
3. Receive Array
For example:
The Code
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 (); //
For more information about how to use jsdatetime, see.
The Code is as follows:
// Convert a Date string such as "10:18:30" to a Date objectVar strArray = str. split ("");Var strDate = strArray [0]. split ("-");Var strTime = strArray [1]. split (":
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 represents 1 months ) mydate.getdate (); get current day (1-31)
We are practicing the application of the open public platform. We are preparing the curriculum (html-formatted curriculum is formatted using table layout) after obtaining the information from the school server, you can use functions such as split in
1 ADD_MONTHS
Format:ADD_MONTHS (D, N)
Note:Returns the date and time corresponding to date and time D plus N months. If N is the timing value, it indicates that D is followed; if N is negative, it indicates that D is before; if N is the decimal
FunctionA function is a set of statements that perform a function, defined by a keyword function name plus a set of parameters; Functions can be called repeatedly after they are defined, often written as a function, using functions to make the
Document. Body. scrolltop returns and sets the coordinate value of the current vertical scroll bar, which must be used with the function,
Document. Body. scrollleft returns and sets the coordinate values of the current Horizontal Rolling task, which
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 (
Click () object. Click () enables the object to be clicked. Closed object. whether the closed object window has closed the true/falsecleartimeout (object) clearing the setTimeout object clearinterval (object) has been set clear the setinterval
PHP query MySQL multi-condition judgment output display
Background:
Query each field value output from MySQL and match the criteria field value with a red font according to the criteria.
Conditions:
1.syntime is less than the current week before
▲Date/TimeCdate converts a string into a date select cdate ("2005/4/5 ")Date returns the current dateDateadd adds a specified date to select dateadd ("D", 30, date () to add 30 days to the current date, where D can be converted to yyyy or H.Datediff
[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, 19
Someone asked how to determine the day of the week?
Select to_char (sysdate, 'D') from dual
Obviously, this sentence cannot complete the required function, because it only shows the day of the current week, while foreigners regard Sunday as the
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
JS get current date and time
Var date = new Date (); date. getYear (); // obtain the current year (2 digits) date. getFullYear (); // obtain the complete year (4 bits, 2014) date. getMonth (); // obtain the current month (0-11, 0 represents January)
Mysql databases are queried by day, yesterday, the first seven days, the last thirty days, the quarter, and the year. mysql databases are queried by thirty days.
Today, I spent some time sorting out the code for MySQL to find data for the current
Python module knowledge 2: Time and date Calendar module Time, Datetime, Calendar, pythondatetime
1. time Module
Why did the time start in 1970? Because Linux was used in that year, the time is usually represented by the following methods:
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.