Stuts returns the XML-type date time. What does each node mean? convert the XML format time to the string-type date time.

Source: Internet
Author: User

The struts configuration is as follows:

<Result name = "queryall" type = "XSLT">

<Param name = "exposedvalue"> models </param>

</Result>

Models is a list set of queries. Data has been received in the flex foreground,

Turn left | turn right

Other data can be displayed normally, but only the date type does not know how to display it.

Turn left | turn right

The date in the database is:

Turn left | turn right

Turn left | turn right

The field indicates:

Year: year (when converting to XML format, it is to subtract the current year by 1900. It is described in Java API, which indicates 2013)

Month: Month (the month starts from 0, and 7 represents July );

Date: Day (from 1 to 31)

Day: Week (0 represents Sunday)

Hours: hour

Minutes: minutes

Seconds: seconds

Time:

Timezoneoffset:

Once you understand the meaning of these attributes, convert them to the date and time format of the string type.

After knowing the meaning of each field, convert it to the date type through new date (year, month, date, hours, minutes, seconds.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.