Dry Report date format, number of decimal digits

Source: Internet
Author: User

Date format:

The date format queried in the database may not be the format we want to display, such as timestamp display to the nanosecond level. Here are two of the kinds I used.

Two ways to specify the date format: the first, the SQL to convert, and the second, the cell display format to set. It is recommended that the first one, because encountered in the report set

Display format, the report inside the preview is effective, but to the project inside the preview does not work.

SQL conversion :to_char ()

Cell formatting: Select cell-Right side, double-click the behavior "show format" column "value" of the cell, you can see a lot of choices, for the date option, choose what you want

Format. One, the figure two shows

Number of decimal digits:

There are two ways to add a limit to the number of decimal digits for some requirements. First, the SQL text is converted; The second, the cell display format is set.

SQL Inside: Round ()

Cell formatting: Select cells-right side, double-click the behavior "show format" column "Value" cell, you can see a lot of choices, for the value options, choose the format you want.

As shown in Figure three

Figure A

Figure II

Might

PS: Here see only to three decimal places, secretly tested, for version 5来 said, I continue to add 0 after the words will show 4 decimal places

Dry Report date format, number of decimal digits

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.