Hello , I had this question how to make your calendar recognize a date and how to make by example change your backgroundcolor when it is the 31 october (halloween)
if you can answer this question , please do it!
thx

Member Avatar

Hello , I had this question how to make your calendar recognize a date and how to make by example change your backgroundcolor when it is the 31 october (halloween) if you can answer this question , please do it!

I don't think anyone can because you didn't specifically explain what is the issue.

I mean on top of my head. You can used DateTime.ParseExact() fucntion.

You can read it here:

http://msdn.microsoft.com/en-us/library/w2sa9yss.aspx

This is just an example:

dateString = "Sun 03 Mar 2013 2:49 PM";
format = "ddd dd MMM yyyy h:mm tt";
try 
{
result = DateTime.ParseExact(dateString, format, provider);
Console.WriteLine("{0} converts to {1}.", dateString, result.ToString());
}
catch (FormatException) 
{

}