Click here to Skip to main content
15,906,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
i take date time picker

DateTime dt = dateTimePicker1.Value;
textBox15.Text = dt.ToString("dd-MMM-YY");

but its showing only 25-04-YY
not showing year

what i want to do for showing year
Posted

1 solution

DateTime dt = dateTimePicker1.Value;
textBox15.Text = dt.ToString("dd-MMM-yy");
make "YY" to "yy"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900