Reporting date

hi. how can i set my reporting date in this format

JANUARY 2020
FEBUARY 2020
MARCH 2020
APRIL 2020
MAY 2020
JUNE 2020

Hey

can you try the following code?

Now.ToString("MMMM yyyy")

image

io_Config(“Filename HGCE”).ToString.Replace(“<%ReportingDate2%>”,DateTime.ParseExact(ReportingDate2, “MMMM yyyy”, System.Globalization.CultureInfo.InvariantCulture).Tostring(“MMMM yyyy”))

just want to ask if this is right.

Hey

thats correct, if any issue ill be happy to help just check if your ReportinDate2 variable is in the format MMMM yyyy, if not please change that input format

Regards

how about doing the MMMM all uppercase?

io_Config(“Filename HGCE”).ToString.Replace(“<%ReportingDate2%>”,DateTime.ParseExact(ReportingDate2, “MMMM yyyy”, System.Globalization.CultureInfo.InvariantCulture).Tostring(“MMMM yyyy”)).ToUpper()

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.