Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: How do I change the Date Format on a String Post Reply Post New Topic
Author Message
acrystalnewbie
Newbie
Newbie
Avatar

Joined: 21 Aug 2009
Location: United States
Online Status: Offline
Posts: 1
Quote acrystalnewbie Replybullet Topic: How do I change the Date Format on a String
    Posted: 21 Aug 2009 at 8:18am

My date is pulling as a string not a date and looks like: 8/20/2009 or 11/7/2009. I need it to be 08202009 or 11072009 basically a MMDDYYYY format. How do I do that when the number of characters is always changing? This is the current code:

RIPARAM( "ReportDate" )
 
 
 - I have no clue what I'm doing, this is my first venture into Crystal.
Ab
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Aug 2009 at 9:35am

Is the original field text or date type?

IF date type create a a formula field with ...
totext({table.DATEfield},"MMddyyyy")


Edited by DBlank - 21 Aug 2009 at 9:35am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.