Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Time Function Post Reply Post New Topic
Author Message
kumalic
Newbie
Newbie


Joined: 14 Apr 2008
Location: Netherlands
Online Status: Offline
Posts: 2
Quote kumalic Replybullet Topic: Time Function
     Posted: 14 Apr 2008 at 6:57am
Hi 2 all,
 
How do i extract the time with the "time function" out of a field in access.
This field has a visual date in it ans the time has to bee extracted.
 
Can any1 help?
 
tnx
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 14 Apr 2008 at 8:50pm
You can use the CStr() function to extract the time elements out of the field and put them in a string format. If you need it in a Time format, then you can convert the string to a time value.
CTime(CStr({table.yourfield}, "hh:mm:ss tt"));

Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
kumalic
Newbie
Newbie


Joined: 14 Apr 2008
Location: Netherlands
Online Status: Offline
Posts: 2
Quote kumalic Replybullet Posted: 16 Apr 2008 at 12:34am
is it posible that this function doesn't work in Crystal reports 8.5 cause we still work with 8.5 becaus of our MIS systeem??
 
[QUOTE=
CTime(CStr({table.yourfield}, "hh:mm:ss tt"));
[/QUOTE]


Edited by kumalic - 16 Apr 2008 at 12:34am
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