15,907,281 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by soothingshruti (Top 6 by date)
soothingshruti
3-Mar-12 2:17am
View
Thanks a lot Rajdeep
soothingshruti
2-Mar-12 7:56am
View
Thanks for reply Rajdeep,
your sum of hours is gives result only in HH i want also in HH:MM and
i want sum of total hours for a particular start date and end date
soothingshruti
2-Mar-12 2:30am
View
i am using sql server
soothingshruti
2-Mar-12 2:28am
View
thanks for reply,i think you didn't understand my question.
when user is select particular date then i want totalhours on that date.
there are multiple entries from different time.
i am giving you a exam.-
employeeid startdate enddate totalhours
100 2012-02-20 12:00:00.000 2012-02-20 13:00:00.000 1.0
100 2012-02-20 14:00.000 2012-02-20 18:00:00.000 2.0
100 2012-02-20 10:45:00.000 2012-02-20 12:00:00.000 1.5
user is give the date 20/02/2012 .
soothingshruti
2-Mar-12 2:17am
View
user just enter start date and end date with time.
an insert querry Convert.ToDecimal(TotalTimeTaken)
soothingshruti
2-Mar-12 2:11am
View
when i am inserting the data ,
i wrote this code-
HourTaken = EnDate.Subtract(StrDate);
Int32 hour = HourTaken.Hours;
Int32 Min = HourTaken.Minutes;
TotalTimeTaken = hour + "." + Min;
Show More