Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany11-Jun-08 3:23
Alan Balkany11-Jun-08 3:23 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George11-Jun-08 3:33
George_George11-Jun-08 3:33 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany11-Jun-08 3:36
Alan Balkany11-Jun-08 3:36 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George11-Jun-08 16:40
George_George11-Jun-08 16:40 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany12-Jun-08 3:07
Alan Balkany12-Jun-08 3:07 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George12-Jun-08 3:13
George_George12-Jun-08 3:13 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany12-Jun-08 3:17
Alan Balkany12-Jun-08 3:17 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George12-Jun-08 23:26
George_George12-Jun-08 23:26 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany13-Jun-08 3:14
Alan Balkany13-Jun-08 3:14 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George15-Jun-08 19:46
George_George15-Jun-08 19:46 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany16-Jun-08 3:04
Alan Balkany16-Jun-08 3:04 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George17-Jun-08 23:24
George_George17-Jun-08 23:24 
QuestionInstallation file Pin
Genius.Boy5-Jun-08 16:01
Genius.Boy5-Jun-08 16:01 
AnswerRe: Installation file Pin
Gareth H5-Jun-08 16:08
Gareth H5-Jun-08 16:08 
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 

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.