Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Need a formula to display Time field Post Reply Post New Topic
Author Message
avishalpatil
Newbie
Newbie


Joined: 24 Dec 2010
Online Status: Offline
Posts: 13
Quote avishalpatil Replybullet Topic: Need a formula to display Time field
    Posted: 16 Sep 2011 at 2:06am
Hi ,

I am new in developing the crystal report.
I am having the time field like 00:30:30 from the database having VARCHAR2 data type. I want to convert this field in 00h 30m 30s.

Could you please suggest me the crystal formula to do the same.


Regards
 Vishal
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 20 Sep 2011 at 3:33am
numbervar ihours :=left({table.field}, 2);
numbervar iminutes := mid({table.field}, 4,2);
numbervar iseconds := mid({table.field}, 6, 2);
 
CTime(ihours, iminutes, iseconds)
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.