Date format for report

Help with reports & document templates

Date format for report

Postby mesologie » January 17th, 2010, 4:31 pm

I am trying to convert the DOB field from PER in a report to show only the date, but I do not succeed using this: "cast(patientper.dob as DATE) as geboorte". This shows the date as well as the time.
I have tried a lot, but nothing seems to work.
What command/format can I use in the source editor? Or is there a way to do the formatting in report design?
mesologie
 
Posts: 22
Joined: January 4th, 2010, 10:14 pm

Re: Date format for report

Postby William » January 18th, 2010, 9:36 am

Thanks for the post. Which report are you trying to edit? The reason why i ask is with each report type (Layout/Grid/Document Template) there is a slightly different way of editing the date.
ClinicOffice Support Team
User avatar
William
 
Posts: 65
Joined: November 1st, 2007, 8:52 am

Re: Date format for report

Postby mesologie » January 19th, 2010, 11:23 am

I am editing the Invoice report. I have added this to the source part of this report:

patientper.firstname, patientper.middlename, patientper.lastname, patientper.address1,
patientper.postcode, patientper.towncity, patientper.knownas,
patientper.dob, cast(patientper.dob as DATE) as geboorte,

So my question is about the last line. This line is based on the line "inv.datetime, cast(inv.datetime as date) as _invdate," from the same report.
mesologie
 
Posts: 22
Joined: January 4th, 2010, 10:14 pm

Re: Date format for report

Postby Daniel » January 20th, 2010, 2:09 pm

Thanks for your post. It's good to see that you are getting your hands dirty with SQL! :D

[1] Click on the Reports and Templates button at the top of ClinicOffice.

[2] Right-click the Invoice report, and select Design Report.

[3] A new window will open up allowing you to edit the Invoice, left-click on the label which displays the Invoice Date. This will select the label and you'll notice a small 'smart tag' appear at the top right of the box (it looks like a little arrow symbol ">"). Left click the 'smart tag' to bring up a menu.

[4] Click the button (with 3 dots ...) next to the Format String

[5] Make sure DateTime is selected in the Category section. Click the Standard Types tab. You can then select from a list of options on how you want your date set out, including or excluding time. Once you've chosen your preferred option click OK. Then re-click the arrow symbol "<".

Alternatively, you can click the Custom formats tab (rather than the Standard Types) and simply select the "d" option, this stands for default which will use your Windows Regional Settings to display the date in the standard format.

I hope this helps!
ClinicOffice Support Team
User avatar
Daniel
 
Posts: 35
Joined: January 11th, 2010, 11:27 am

Re: Date format for report

Postby mesologie » January 21st, 2010, 12:34 pm

Thanks a lot. Now I can even reformat other fields.
mesologie
 
Posts: 22
Joined: January 4th, 2010, 10:14 pm


Return to Reports & Templates (COv4)

Who is online

Users browsing this forum: No registered users and 1 guest

cron