DateTime

  • Thread starter Thread starter JD
  • Start date Start date
J

JD

I would like to show a message box and a date, i can how to do it in c++,
but as i'm learning c#

this is the code i've done

using System;

class myApp

{

public static void Main()

{

DateTime CurrTime = DateTime.Today;

Console.WriteLine(CurrTime.Day);

Console.WriteLine(CurrTime.Month);





if (CurrTime.Day = "27" + CurrTime.Month ="10")

{

Console.WriteLine("Birthday");

}

else

{

Console.WriteLine("Not Birthday");

}

Console.ReadLine();

}

}
 
Back
Top