Solved

crystal reports xi formatting field question

Posted on 2008-06-19
6
204 Views
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.
0
Comment
Question by:samic400
[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
6 Comments
 
LVL 33

Assisted Solution

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

jppinto
0
 
LVL 13

Author Comment

by:samic400
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?
0
 
LVL 33

Expert Comment

by:jppinto
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.

jppinto
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Author Comment

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

Accepted Solution

by:
crgary_tx earned 225 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))

Gary
0
 

Assisted Solution

by:suresh-infotech
suresh-infotech earned 175 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.
because

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

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

707 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