Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: lenght of stay formula 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: lenght of stay formula
     Posted: 23 Mar 2012 at 7:52am

Hi, here is what i need

I need to display clients whom have been discharged. Of those discharged i need to pull up the ones who were opened for less than 6 months.
 
I did a formula to calculate "lenght of stay" but this formula is in days :
 
datediff ("d",{episode_admit.admission_date},{episode_admit.date_of_discharge})
 
then in my select expert i selected the formula "lenght of stay" and said is less than 182 (days, about 6 months)
 
I want all this information in months instead of days. How do i change my lenght of stay formula to reflect months instead of days?
 
 
IP IP Logged
rkrowland
Senior Member
Senior Member
Avatar

Joined: 20 Dec 2011
Location: England
Online Status: Offline
Posts: 259
Quote rkrowland Replybullet Posted: 23 Mar 2012 at 8:14am
datediff ("m",{episode_admit.admission_date}, {episode_admit.date_of_discharge})
 
Regards,
Ryan.
 
IP IP Logged
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Posted: 23 Mar 2012 at 8:48am
thanks!
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