TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
durga prasad
NA
54
0
Converting Timespan to Decimal
Aug 7 2008 3:26 AM
Hi,
How to Convert TimeSpan to Decimal format, my code looks like this
TimeSpan ts = new TimeSpan();
ts = datetimepickerouttime.Value.TimeOfDay - datetimepickerintime.Value.TimeOfDay;
ts = ts.Subtract(TimeSpan.FromMinutes(30));
TextBox1.Text = Convert.ToDecimal(Convert.ToDecimal(ts.Hours) + (Convert.ToDecimal(ts.Minutes))).ToString("#.00");
Thanks in Advance,
Reply
Answers (
1
)
How to block pop-up in C# win form?
SSL samples and ServerCertificateValidationCallback