Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to save the property of the user-defined column ? Pin
Cracked-Down6-Aug-09 20:28
Cracked-Down6-Aug-09 20:28 
QuestionWiewing Office Document in Web Browser Pin
egpuyos6-Aug-09 20:04
egpuyos6-Aug-09 20:04 
AnswerRe: Wiewing Office Document in Web Browser Pin
Mycroft Holmes6-Aug-09 20:10
professionalMycroft Holmes6-Aug-09 20:10 
AnswerRe: Wiewing Office Document in Web Browser Pin
Baeltazor7-Aug-09 0:43
Baeltazor7-Aug-09 0:43 
QuestionDifference between two date/times Pin
mjawadkhatri6-Aug-09 19:55
mjawadkhatri6-Aug-09 19:55 
AnswerRe: Difference between two date/times Pin
Vikram A Punathambekar6-Aug-09 20:15
Vikram A Punathambekar6-Aug-09 20:15 
GeneralRe: Difference between two date/times Pin
mjawadkhatri6-Aug-09 20:21
mjawadkhatri6-Aug-09 20:21 
GeneralRe: Difference between two date/times Pin
Vikram A Punathambekar6-Aug-09 20:30
Vikram A Punathambekar6-Aug-09 20:30 
DateTime dt1 = DateTime.ParseExact("11:15:00", "hh:mm:ss", new DateTimeFormatInfo());
DateTime dt2 = DateTime.ParseExact("11:20:00", "hh:mm:ss", new DateTimeFormatInfo());

TimeSpan ts1 = dt1.Subtract(dt2);
Console.WriteLine(ts1.ToString());

Works for me.

Do you get the error when you create dt1 or dt2?

Cheers,
Vikram. (Proud to have finally cracked a CCC!)

Recent activities:
TV series: Friends, season 10
Books: Fooled by Randomness, by Nassim Nicholas Taleb.
Carpe Diem.




GeneralRe: Difference between two date/times Pin
mjawadkhatri6-Aug-09 20:37
mjawadkhatri6-Aug-09 20:37 
AnswerRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 0:39
sitebuilderLuc Pattyn7-Aug-09 0:39 
GeneralRe: Difference between two date/times Pin
mjawadkhatri7-Aug-09 2:02
mjawadkhatri7-Aug-09 2:02 
GeneralRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 2:40
sitebuilderLuc Pattyn7-Aug-09 2:40 
GeneralRe: Difference between two date/times Pin
Vikram A Punathambekar7-Aug-09 6:33
Vikram A Punathambekar7-Aug-09 6:33 
GeneralRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 6:59
sitebuilderLuc Pattyn7-Aug-09 6:59 
QuestionWiewing Office Document in Web Browser Pin
egpuyos6-Aug-09 19:51
egpuyos6-Aug-09 19:51 
AnswerRe: Wiewing Office Document in Web Browser Pin
dan!sh 6-Aug-09 20:00
professional dan!sh 6-Aug-09 20:00 
GeneralRe: Wiewing Office Document in Web Browser Pin
Baeltazor7-Aug-09 0:29
Baeltazor7-Aug-09 0:29 
QuestionHow to catch the data that is given for print using c# Pin
svt gdwl6-Aug-09 19:40
svt gdwl6-Aug-09 19:40 
Questionhow to get tables of an access db into a list box using c#? Pin
fathatsme6-Aug-09 19:04
fathatsme6-Aug-09 19:04 
AnswerRe: how to get tables of an access db into a list box using c#? Pin
Cracked-Down6-Aug-09 19:24
Cracked-Down6-Aug-09 19:24 
QuestionRe: how to get tables of an access db into a list box using c#? Pin
fathatsme6-Aug-09 19:33
fathatsme6-Aug-09 19:33 
Answerhow to get fields tables of an acces db into a list box?` Pin
fathatsme6-Aug-09 20:16
fathatsme6-Aug-09 20:16 
GeneralRe: how to get fields tables of an acces db into a list box?` Pin
fathatsme6-Aug-09 23:36
fathatsme6-Aug-09 23:36 
QuestionDataGridView Pin
vhassan6-Aug-09 18:26
vhassan6-Aug-09 18:26 
AnswerRe: DataGridView Pin
Mycroft Holmes6-Aug-09 20:14
professionalMycroft Holmes6-Aug-09 20:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.