Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
GeneralRe: Installation file Pin
Genius.Boy5-Jun-08 17:00
Genius.Boy5-Jun-08 17:00 
Questionsetting custom file attribues in C# Pin
RodEffect5-Jun-08 15:46
RodEffect5-Jun-08 15:46 
AnswerRe: setting custom file attribues in C# Pin
RodEffect9-Jun-08 20:46
RodEffect9-Jun-08 20:46 
Questionyesterday's time Pin
George_George5-Jun-08 15:28
George_George5-Jun-08 15:28 
AnswerRe: yesterday's time Pin
Gareth H5-Jun-08 15:35
Gareth H5-Jun-08 15:35 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 15:40
George_George5-Jun-08 15:40 
GeneralRe: yesterday's time Pin
Gareth H5-Jun-08 15:54
Gareth H5-Jun-08 15:54 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 16:01
George_George5-Jun-08 16:01 
Your code is wrong, Gareth. Smile | :)


Maybe it is my mistake not making myself understood. I want to check whether two DateTime type instance are of the same date, not the same day.

From your code, you can see May 1st and June 1st are the same date. Smile | :)

Any ideas about how to fix it?

DateTime d1 = new DateTime(2008, 5, 1);
DateTime d2 = new DateTime(2008, 6, 1);

if (d1.Day == d2.Day)
{
    Console.WriteLine("hit");
}



regards,
George
GeneralRe: yesterday's time Pin
Gareth H5-Jun-08 16:05
Gareth H5-Jun-08 16:05 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 16:13
George_George5-Jun-08 16:13 
GeneralRe: yesterday's time Pin
Christian Graus5-Jun-08 17:23
protectorChristian Graus5-Jun-08 17:23 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 18:44
George_George5-Jun-08 18:44 
GeneralRe: yesterday's time Pin
Alex@UEA5-Jun-08 21:12
Alex@UEA5-Jun-08 21:12 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 21:21
George_George5-Jun-08 21:21 
GeneralRe: yesterday's time Pin
PIEBALDconsult5-Jun-08 17:06
mvePIEBALDconsult5-Jun-08 17:06 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 18:27
George_George5-Jun-08 18:27 
QuestionImageList help Pin
decoyoctopus5-Jun-08 14:33
decoyoctopus5-Jun-08 14:33 
AnswerRe: ImageList help Pin
Gareth H5-Jun-08 15:32
Gareth H5-Jun-08 15:32 
GeneralRe: ImageList help Pin
decoyoctopus6-Jun-08 13:56
decoyoctopus6-Jun-08 13:56 
QuestionGet message ID from smtp message Pin
Nick De Decker5-Jun-08 11:25
Nick De Decker5-Jun-08 11:25 
QuestionThird party frameworks Pin
Tim Holgerson5-Jun-08 10:40
Tim Holgerson5-Jun-08 10:40 
AnswerCross Post - please ignore Pin
Pete O'Hanlon5-Jun-08 11:20
mvePete O'Hanlon5-Jun-08 11:20 
GeneralRe: Cross Post - please ignore Pin
Tim Holgerson5-Jun-08 11:56
Tim Holgerson5-Jun-08 11:56 
AnswerPersonally Pin
Ennis Ray Lynch, Jr.5-Jun-08 11:21
Ennis Ray Lynch, Jr.5-Jun-08 11:21 
AnswerRe: Third party frameworks Pin
DaveyM695-Jun-08 11:28
professionalDaveyM695-Jun-08 11:28 

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.