i want in output
01-19
01 is fixed but year(19) will be current
if year is 2020
then output should be 01-20
i want in output
01-19
01 is fixed but year(19) will be current
if year is 2020
then output should be 01-20
Use this “01-” + Now.ToString(“yy”)
Thank You
Hi Ananya1,
Try this
“01-”+(Convert.ToInt32(DateTime.Today.Year.ToString().Substring(2, 2))).ToString