Date/time Calculation

5 pts.
Tags:
DateTime
I want to calculate the Date/time in hours when the document is in status of "Work in Progress" by using starttime and endtime

Answer Wiki

Thanks. We'll let you know when a new response is added.

I’m not sure about the language/environment you refer to but anyway many languages include datetime operations such as DATEDIFF, DATEADD, DATEPART and so on.
Anyway I assume that SQL is used in this case so:

<b>SELECT (DATEDIFF( hh , startdate , enddate ) ) as Hours_Remaining</b>

Regards

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BrentSheets
    Moderator Note: Chowdary16, welcome to IT Knowledge Exchange. On future questions, please take a moment to include a meaningful tag and provide more details, such as what product or platform applies to the question. I added a tag for you but without more information, it will be difficult for other members to answer your question. You may provide more information by adding a comment below. Thanks.
    6,925 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following