DateTime parse string missing reference


I want to parse a string like “0930” or “1750” into DateTime but can’t find this System.Globalization reference that Microsoft .NET doc keeps referring to…
This CultureInfo that implements the IFormatProvider

What can I do? I’m in the Grasshopper C# component.

Have you tried using the full name for the class? For example:

System.Globalization.CultureInfo provider = System.Globalization.CultureInfo.InvariantCulture;

Attached is an example with two ways to do this: first with a fully qualified class, second with adding a reference to the System.Globalization namespace, which somehow the C# component fails to autocomplete. (8.7 KB)

ok it’s there, just hidden from me…

Hidden from all of us!