Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: convert text to dates Post Reply Post New Topic
Author Message
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Topic: convert text to dates
     Posted: 24 Jan 2011 at 8:28am
I am working on a report for which i need to view all future appointments.
I have created a formula to give me future dates (see below)
 
{AppointmentData.appointment_date}>currentdate
 
however the output is False (if not future appts) and True (if there is future appts)
 
I need to have the dates of the future appts display
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 25 Jan 2011 at 3:19am
if one of them is text and one is date, you can decide which way to go, both to text or both to date.  CDATE(string) is one option TOTEXT(date, format) is another.
 
HTH
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Jan 2011 at 3:41am
I think the issue here is that you are placing the select formula ...
{AppointmentData.appointment_date} > currentdate ...
in a field explorer formula rather than the select expert.

Edited by DBlank - 25 Jan 2011 at 3:42am
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