❔ DateTime culture info persistense
Hi! Say we have a DateTime variable called MyVariable. When I want to convert it into a string, I want to use a specific culture info. Usually, you just do
and then somewhere later
MyVariable.ToString(MyCulture). But is there a way for me to set the culture info before the conversion?MyVariable.CultureInfo = MyCultureand then somewhere later
MyString = MyVariable.ToString()