Calendar Extender date picking and converting into correct format

MogycyncGok

New Member
i am picking the value from calender extender in textbox and i am getting the value in the format \[code\]{"MM/dd/yyyy"}\[/code\] but i want it in the format \[code\]{"dd/MM/yyyy"}\[/code\] in another textbox( \[code\]txt_actualrightformat.Text\[/code\]) as code shown below\[code\]DateTime wrongformat = DateTime.Parse(TextBox4.Text);String rightformat = String.Format("{0:dd/MM/yyyy}", wrongformat.Date);txt_actualrightformat.Text = rightformat.ToString();\[/code\]
 
Back
Top