maskedTextBox1.Text = DateTime.Now.ToString();
Quote:but it is filling like this 12/62/012_ how to make this as 06/12/2012
maskedTextBox1.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now);
maskedTextBox1.Text = Convert.ToDateTime(DateTime.Now).ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)