J
JD
Hi
I'm trying to find out how to display a message on a date. I know how to do
it in C++, but now i'm learning C# i would also like to do it in this
language. This is the code i'm using:
using System; // has all the date/time stuff
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();
}
}
This code doesn't seem to work, any advice?
thanks in advance.
I'm trying to find out how to display a message on a date. I know how to do
it in C++, but now i'm learning C# i would also like to do it in this
language. This is the code i'm using:
using System; // has all the date/time stuff
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();
}
}
This code doesn't seem to work, any advice?
thanks in advance.