First month and current year

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”)

1 Like

Hi @Ananya1

you can do like this

image

Regards
Balamurugan.S

Thank You

1 Like

Hi Ananya1,

Try this
“01-”+(Convert.ToInt32(DateTime.Today.Year.ToString().Substring(2, 2))).ToString