Click here to Skip to main content
15,902,198 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem clalculating hours and minutes Pin
Not Active10-Sep-09 8:45
mentorNot Active10-Sep-09 8:45 
GeneralRe: problem clalculating hours and minutes Pin
OriginalGriff10-Sep-09 8:53
mveOriginalGriff10-Sep-09 8:53 
GeneralRe: problem clalculating hours and minutes Pin
Luc Pattyn10-Sep-09 9:55
sitebuilderLuc Pattyn10-Sep-09 9:55 
GeneralRe: problem clalculating hours and minutes Pin
OriginalGriff10-Sep-09 10:03
mveOriginalGriff10-Sep-09 10:03 
GeneralRe: problem clalculating hours and minutes Pin
Luc Pattyn10-Sep-09 10:16
sitebuilderLuc Pattyn10-Sep-09 10:16 
GeneralRe: problem clalculating hours and minutes Pin
DaveyM6910-Sep-09 22:13
professionalDaveyM6910-Sep-09 22:13 
AnswerRe: problem clalculating hours and minutes Pin
0x3c010-Sep-09 8:36
0x3c010-Sep-09 8:36 
AnswerRe: problem clalculating hours and minutes Pin
carlecomm23-Sep-09 1:10
carlecomm23-Sep-09 1:10 
'TotalHours' is not the same to 'Hours';
'TotalMinutes' is not the same to 'Minutes';

//for example
private string DateDiff(DateTime DateTime1, DateTime DateTime2)
{string dateDiff = null;
TimeSpan ts1 = new TimeSpan (DateTime1.Ticks);
TimeSpan ts2 = new TimeSpan (DateTime2.Ticks);
TimeSpan ts = ts1.Subtract(ts2).Duration();
dateDiff = ts.Days.ToString()+"days"+ ts.Hours.ToString()+"hours"+ ts.Minutes.ToString()+"minutes"+ ts.Seconds.ToString()+"seconds";
return dateDiff;
}

modified 27-May-14 5:29am.

QuestionIs there a way to registry factories when an assembly is loaded? Pin
k66610-Sep-09 8:01
k66610-Sep-09 8:01 
AnswerRe: Is there a way to registry factories when an assembly is loaded? Pin
Not Active10-Sep-09 8:35
mentorNot Active10-Sep-09 8:35 
Questionstrong name verification Pin
amit_upadhyay10-Sep-09 7:49
amit_upadhyay10-Sep-09 7:49 
AnswerRe: strong name verification Pin
I Believe In GOD10-Sep-09 12:08
I Believe In GOD10-Sep-09 12:08 
QuestionProblem with Visio ExportAsFixedFormat Pin
NarVish10-Sep-09 6:15
NarVish10-Sep-09 6:15 
AnswerRe: Problem with Visio ExportAsFixedFormat Pin
carlecomm23-Sep-09 1:06
carlecomm23-Sep-09 1:06 
GeneralRe: Problem with Visio ExportAsFixedFormat Pin
NarVish23-Sep-09 1:45
NarVish23-Sep-09 1:45 
AnswerRe: Problem with Visio ExportAsFixedFormat Pin
NarVish23-Sep-09 6:24
NarVish23-Sep-09 6:24 
QuestionRegular expression Pin
karmjit43510-Sep-09 2:41
karmjit43510-Sep-09 2:41 
AnswerRe: Regular expression Pin
Keith Barrow10-Sep-09 2:59
professionalKeith Barrow10-Sep-09 2:59 
AnswerRe: Regular expression Pin
Nuri Ismail10-Sep-09 3:04
Nuri Ismail10-Sep-09 3:04 
AnswerRe: Regular expression PinPopular
J4amieC10-Sep-09 3:05
J4amieC10-Sep-09 3:05 
GeneralRe: Regular expression Pin
karmjit43510-Sep-09 3:21
karmjit43510-Sep-09 3:21 
GeneralRe: Regular expression [modified] Pin
J4amieC10-Sep-09 3:55
J4amieC10-Sep-09 3:55 
GeneralRe: Regular expression Pin
PIEBALDconsult10-Sep-09 4:32
mvePIEBALDconsult10-Sep-09 4:32 
GeneralRe: Regular expression Pin
J4amieC10-Sep-09 4:33
J4amieC10-Sep-09 4:33 
GeneralRe: Regular expression Pin
PIEBALDconsult10-Sep-09 4:36
mvePIEBALDconsult10-Sep-09 4:36 

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.