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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate the number of hours:mins between two dates

Status
Not open for further replies.

karlomutschler

Programmer
Jun 5, 2001
75
DE
good day,
the number of hours and minutes between two dates have to
be calculated.
eg
sdate = 18APR2007:10:34:51
edate = 19APR2007:09:22:58

Any assistance is most welcome.

Kind regards
Karlo
 
If the two fields are SAS data tiems fields, then this is easy. Subtract the two fields and you'll be left with the number of seconds between them. you can then either use a format to show hours and minutes, or you can divide by 60 to get the number of minutes etc.

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top