Rdlc report time format

Source: Internet
Author: User

Keywords
Formatdatetime

Type
Function-Date and Time

Example expression
= Formatdatetime (Fields! Field name. Value, dateformat. 1_date)
= Formatdatetime (Fields! Field name. Value, vb1_date)

Remarks
Returns a string expression that represents a date or time value.
The second parameter is a dateformat enumeration. The enumerated values are listed as follows --

Member name
Description

Generaldate
For real numbers, a date and time are displayed. If the number does not have a decimal part, only the date is displayed. If the number does not have an integer, only the time is displayed. The date and time display are determined by the computer's region settings. This member is equivalent to the Visual Basic constant vbgeneraldate.

Longdate
Use the long date format specified in the region settings of the computer to display the date. This member is equivalent to the Visual Basic constant vblongdate.

Longtime
Use the long-time format specified in the region settings of the computer. This member is equivalent to the Visual Basic constant vblongtime.

Expiry date
Use the short date format specified in the computer's region settings to display dates. This member is equivalent to the Visual Basic constant vb1_date.

Processing time
Use the specified short-time format display time in the computer's region settings. This member is equivalent to the Visual Basic constant vb1_time.

URL: http://msdn2.microsoft.com/zh-cn/library/microsoft.visualbasic.dateformat.aspx

Related Article

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.