[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


crystal reports xi formatting field question

Posted on 2008-06-19
Medium Priority
Last Modified: 2010-04-30
I have a field from my table that is a character field, which contains a date, in yyyymmdd format. I would like to read this field, and reformat it so it is in mm/dd/yyyy form. How can I do this and what steps would I need to accomplish this?

Thanks in advance.
Question by:samic400
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
LVL 33

Assisted Solution

jppinto earned 400 total points
ID: 21821338
On Design mode, select the textbox where you've your data and on the Properties-DateOrder select the crMonthDayYear option.

LVL 13

Author Comment

ID: 21821567
I need to do this within the report in crystal. wouldn't i have to build some sort of function along with the mid function?
LVL 33

Expert Comment

ID: 21821588
The solution I gave you is in Crystal Report. Go to your Cristal Report and on the Textbox where you put the data, change the propertie that I told you.

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 13

Author Comment

ID: 21821670
I guess I'm not seeing that then.
LVL 13

Accepted Solution

crgary_tx earned 900 total points
ID: 21821696
There could be more easier ways but try this: Create the following crystal formula:

cdate(left({yourdatefield},4)+','+{yourdatefield}[5 to 6]+','+right({yourdatefield},2))


Assisted Solution

suresh-infotech earned 700 total points
ID: 21821717
Create a New formula. give some name. in formula editor, paste the following code.
and change the [fieldname] to your actual field. save it. now u can change the date format.

Date (Left (fieldname,4), Mid(fieldname, 5 , 2), right(fieldname, 2))

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

650 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