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.
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. CultureInfo.gh (8.7 KB)