Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Crystal reporting 11 Post Reply Post New Topic
Author Message
dseb
Newbie
Newbie
Avatar

Joined: 14 Feb 2012
Location: United States
Online Status: Offline
Posts: 2
Quote dseb Replybullet Topic: Crystal reporting 11
    Posted: 14 Feb 2012 at 6:23am
Hi everyone,
I'm having issues converting a date/time field which displays as:"20120214 09:15:00" into 02/14/2012 09:15 AM.  I tried using 2 formulas to convert the string into a datetime value but they both failed.
 
i used "dateTimeValue({field from DB}) and also tried cDateTime({field from DB}). 
Can anybody tell me what i'm doing wrong here?  When i check the formula it passes but while trying to run the report, the report fails.
Thank you
DsEB
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Feb 2012 at 7:42am
you could try something like
datetime(picture({field from DB},"xxxx/xx/xx xxxxxxxx"))
IP IP Logged
dseb
Newbie
Newbie
Avatar

Joined: 14 Feb 2012
Location: United States
Online Status: Offline
Posts: 2
Quote dseb Replybullet Posted: 14 Feb 2012 at 8:30am
That did the trick.  Your the man!!!  Thx for your help.
DsEB
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.016 seconds.