Hi,
this is my first post here - i am very new to C# and i am struggling with a solution.

i have to accept a date as a numerical value in a text box, then convert it into a string displaying the written month name.

im struggling on how i can seperate the date input (i.e "18/02/2009") into three seperate int's (i.e 18 and 02 and 2009)

any help would be great,
thanks

Bradd

DateTime dt;
int year;
int month;
int day;
if(DateTime.TryParse(textbox1.Text, out dt))
{
        month = dt.Month;
        year = dt.Year;
        day = dt.Day;
        // Do what you want with the breakout
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.