Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating the Length of Stay 1

Status
Not open for further replies.

mchambers

MIS
Aug 28, 2008
56
US
Hello,

I need to add a length of stay column to a report and I am having difficulty formating the output. I was wondering if anyone can help me with this.

I have:
=Fields!dischargedate.Value - Fields!admitdate.Value

Then in properties under format I have tried all the different numbering formats
ex: g, F0, etc....

This is the output I continue to get: Ex:101.00:00:00

Thanks
 
Try this

Code:
=datediff("d", Fields!admitdate.Value, Fields!dischargedate.Value)
 
Your awesome that worked great! Thanks! Have a wonderful weekend!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top