Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: CONVERT STRING TO DATE Post Reply Post New Topic
Author Message
Kitty1
Senior Member
Senior Member
Avatar

Joined: 14 Apr 2010
Online Status: Offline
Posts: 159
Quote Kitty1 Replybullet Topic: CONVERT STRING TO DATE
     Posted: 07 Jun 2011 at 10:18am
Hello,
 
is there an easy way to convert a string into a date ?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 07 Jun 2011 at 11:46am
depends on the format of the string
but this is the generic process
date(string)
IP IP Logged
Kitty1
Senior Member
Senior Member
Avatar

Joined: 14 Apr 2010
Online Status: Offline
Posts: 159
Quote Kitty1 Replybullet Posted: 16 Jun 2011 at 10:16am
thanks!
IP IP Logged
dajsile
Newbie
Newbie


Joined: 17 Feb 2011
Online Status: Offline
Posts: 4
Quote dajsile Replybullet Posted: 23 Jun 2011 at 6:31am
I have a very similar situation.  However my string field is in the format of mm/yy.  When I convert is it changes to mm/dd/yy.  How can I convert the string to a mm/yy date?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Jun 2011 at 4:17am
thre is no such thing in crystal as as a date field type that is not an actual full date.
You can make it a date type and then display it as you want mm/yy by right clicking on the field and using the format options
IP IP Logged
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