Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: formula for date of birth less than one year 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: formula for date of birth less than one year
     Posted: 20 Jun 2011 at 5:58am
hi
 
I need a formula to give me  date_of_birth if the client is less than 1 year old
 
 
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 20 Jun 2011 at 6:23am
not sure what data you have, but it something like this
if (Currentdate-birthdate(field))/365.5<1 then bithdate(field)


Edited by kostya1122 - 20 Jun 2011 at 6:23am
IP IP Logged
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Posted: 20 Jun 2011 at 6:42am

That worked! .

 
Thanks a million
 
this is what it looks like with the tables and fields
 
if(currentdate-({patient_current_demographics.date_of_birth}))/365.5 <1 then ({patient_current_demographics.date_of_birth})
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