Solved

dateformat

Posted on 2009-03-30
5
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

623 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