Month and year issue

How to write current year as 21 and current month June as 6

If you are using system date then:

  1. Only Year - Now.ToString(“yy”)
  2. Only Month - Now.ToString(“MM”)
  3. Both Year & Month - Now.ToString(“yyMM”)
  4. Year, Month & Day - Now.ToString(“yyMMdd”)

Hope it helps :slight_smile:

For current year as 21 → Now.ToString(“yy”)
For current month as 6 → Now.Month.ToString