Solved

dateformat

Posted on 2009-03-30
5
356 Views
Last Modified: 2012-05-06
Hi,

How can I change the format of the date field from YYYY-MM-DD HH:MM:SS to YYYY-MM-DD.
0
Comment
Question by:minhajm
  • 2
  • 2
5 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 24026267
Right-click the field and choose Format field.
0
 

Author Comment

by:minhajm
ID: 24029036
Hi,

I am using the datetime field as an input parameter and the text on the parameter window shows as "Please enter datetime format yyyy-mm-dd hh:mm:ss". I would like to display as yyyy-mm-dd.
Date.bmp
0
 
LVL 77

Accepted Solution

by:
peter57r earned 50 total points
ID: 24029243
You cannot control the appearance of parameter fields except by choosing a different datatype.

But if you are using a parameter field for selection, then it's datatype MUST match the dadatype of the database field you are comparing to.  If your database datatype is datetime then the most efficient selection will occur if the parameter is also datetime (but you will have to enter a time as well as a date).

If you want to use a Date (rather than Datetime) parameter field but your datatabase field is datetime then you would also have to create a formula field which extracted just the date from the database datetime field  for use in a selection rule.
DateValue({table.datetimefield})
This could cause the report to run slower.
0
 

Author Comment

by:minhajm
ID: 24030659
Thanks Peter I changed the parameter type to Date in the parameter edit window and it worked.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now