Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: sql server Urgent!!!! Pin
Not Active4-Feb-08 14:06
mentorNot Active4-Feb-08 14:06 
GeneralDate Pin
simworld4-Feb-08 6:55
simworld4-Feb-08 6:55 
GeneralRe: Date Pin
J$4-Feb-08 7:12
J$4-Feb-08 7:12 
GeneralRe: Date Pin
simworld4-Feb-08 7:32
simworld4-Feb-08 7:32 
GeneralRe: Date Pin
J$4-Feb-08 8:01
J$4-Feb-08 8:01 
GeneralRe: Date Pin
PIEBALDconsult4-Feb-08 13:58
mvePIEBALDconsult4-Feb-08 13:58 
GeneralRe: Date Pin
DaveyM694-Feb-08 8:14
professionalDaveyM694-Feb-08 8:14 
GeneralRe: Date Pin
snorkie4-Feb-08 8:20
professionalsnorkie4-Feb-08 8:20 
The best way I have found is to subtract one DateTime from another, creating a TimeSpan object. Then use the result of the TimeSpan object to do your testing. Hope this helps!

DateTime dt1 = DateTime.Now;
DateTime dt2 = DateTime.Now.AddDays(1);

//Compare
TimeSpan ts = dt1 - dt2;


if (ts.TotalMinutes < 50)
{
//do good stuff here
}

Hogan
GeneralRe: Date Pin
simworld5-Feb-08 7:42
simworld5-Feb-08 7:42 
GeneralHtml table to DataTable Object Pin
Nadia Monalisa4-Feb-08 5:39
Nadia Monalisa4-Feb-08 5:39 
GeneralRe: Html table to DataTable Object Pin
Gareth H4-Feb-08 6:56
Gareth H4-Feb-08 6:56 
GeneralConvert mdf and ldf for .bak file Pin
Thaer Hamael4-Feb-08 3:05
Thaer Hamael4-Feb-08 3:05 
GeneralRe: Convert mdf and ldf for .bak file Pin
Christian Graus4-Feb-08 12:32
protectorChristian Graus4-Feb-08 12:32 
GeneralIFilter Pin
justintimberlake4-Feb-08 2:11
justintimberlake4-Feb-08 2:11 
GeneralRe: IFilter Pin
Pete O'Hanlon4-Feb-08 3:04
mvePete O'Hanlon4-Feb-08 3:04 
Questioni want to insert a new node regarding this code.but insert is not working.. Pin
samidhas4-Feb-08 0:04
samidhas4-Feb-08 0:04 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
Guffa4-Feb-08 1:21
Guffa4-Feb-08 1:21 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
samidhas4-Feb-08 4:06
samidhas4-Feb-08 4:06 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
Guffa4-Feb-08 8:58
Guffa4-Feb-08 8:58 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
samidhas4-Feb-08 18:43
samidhas4-Feb-08 18:43 
Questionhow to insert a new node in a tree view programatically? Pin
samidhas3-Feb-08 23:32
samidhas3-Feb-08 23:32 
GeneralRe: how to insert a new node in a tree view programatically? Pin
Mircea Puiu3-Feb-08 23:45
Mircea Puiu3-Feb-08 23:45 
GeneralWebParts.. Pin
razanabanu3-Feb-08 23:24
razanabanu3-Feb-08 23:24 
GeneralRe: WebParts.. Pin
_tasleem4-Feb-08 1:27
_tasleem4-Feb-08 1:27 
QuestionHow to capture Pc remote control keycodes? Pin
dudiba3-Feb-08 23:18
dudiba3-Feb-08 23:18 

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.