Solved

dateformat

Posted on 2009-03-30
5
363 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
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 …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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