Hi Guys,
When i am trying to do below. Error message occurred. Please help.
dateTimeVar.AddYears(1).toString(“dd/MM/yyyy”,CultureInfo.InvariantCulture)
Error Msg:
‘CultureInfo’ is not declared. it may be inaccessible due to its protection level
Hi Guys,
When i am trying to do below. Error message occurred. Please help.
dateTimeVar.AddYears(1).toString(“dd/MM/yyyy”,CultureInfo.InvariantCulture)
Error Msg:
‘CultureInfo’ is not declared. it may be inaccessible due to its protection level
Hi,
Can you try the following expression?
dateTimeVar.AddYears(1).toString("dd/MM/yyyy",System.Globalization.CultureInfo.InvariantCulture)
Regards,
Solved. Thank you
Better set this Assign in the init of your process once and never hassle again with this topic (set what you need instead of “de-DE”):
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(“de-DE”)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.