Change format month?

I have query as below.

Date_month = DateTime.ParseExact(date_1,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).AddDays(-1).ToString(“MMMM”,culture)

Output = เมษายน ( local name month in TH language)

If I want to new 2 variable for year (2021) and month (04).
Please suggest about it.

I want edit from .xaml as below.

Main.xaml (13.2 KB)

Please guide me about it.

@fairymemay
Try this
Assign Activity → String Month = DateTime.ParseExact(date_1,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).Month.ToString
OR
Assign Activity → String MonthInNumber =
Datetime.ParseExact(date_1,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“MM")

Assign Activity → String Year = DateTime.ParseExact(date_1,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).Year.ToString

Here is the output
image

Main.xaml (15.3 KB)