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
It is mainly used for Date objects. First, let's recall the parameters and methods of the Date object. The Code is as follows. If you are interested, refer
Knowledge point:
It is mainly used for Date objects. (The following content is from the
(i) Date and time functions
1.DATE
Purpose: Returns the serial number that represents a specific date.
Syntax: Date (year, month, day)
Parameters: Year, for one to four bits, the parameter is interpreted according to the date system used. By default,
Date and Time functionsThis chapter discusses some functions that can be used to manipulate time values. See section 11.3, "Date and Time type" for valid formats for each time and date type with a range and a specified value.
The following example
Knowledge Points:
is primarily used for date objects. (The following information is from the network)
to create the syntax for a Date object:
var mydate=new Date ()
The Date object automatically saves the current date and time as its initial
Knowledge point:
It is mainly used for Date objects. (The following content is from the Network)
Syntax for creating a Date object: Var myDate = new Date ()The Date object automatically saves the current Date and time as its initial value.The
Get Date
1, Date ()
--Returns the date and time of the day.
2, GetDate ()
--Returns one day of one months from the Date object (1 ~ 31).
3, Getday ()
--Returns one day of the week from the Date object (0 ~ 6).
4, GetMonth ()
--Returns the
PHP-time (), date (), mktime () date and time function library. Checkdate verifies the correctness of the date. Syntax: intcheckdate (intmonth, intday, intyear); return value: integer function type: time and date content description if the date is
Date ObjectThe Date object is used to process dates and times.To create the syntax for a Date object:var mydate=new Date ();Note: The Date object automatically saves the current date and time as its initial value.1. Date Initialization settings new
Checkdate: Verify that the date is correct.
Date: format the server time.
Strftime: format the server time locally.
Getdate: Get the time and date information.
Gettimeofday: Get the current time.
Gmdate: Get the current time difference from
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.