Previous Topic

Next Topic

Book Contents

Specifying date formats

Here are two examples of how you can manipulate date output. First let us specify that we want to produce the date in the form mm-dd-yyyy, using a hyphen (-) as a separator. In the report, we will show both the original and the new formats, with brief text explanations:

CustomReportCodeDateFormat1

Next, let us get and write the date in the format stored for an individual user. This format corresponds to the local style that the user has chosen for displaying dates. For example, a user in the United States would typically write dates in the form mm-dd-yyyy, while a European user would write dd-mm-yyyy.

CustomReportCodeDateFormat2

Send Feedback