This PR addresses two minor cleanups in NSDate parsing and formatting:
In ParseDateString we can use the overload of DateTime.ParseExact that accepts multiple formats. This prevents throwing and catching an exception (an expensive operation) each and every time when parsing a date in the GnuStep format.
In MakeDateString and MakeDateStringGnuStep we should use the same format provider that we use when parsing.
This PR addresses two minor cleanups in
NSDate
parsing and formatting:ParseDateString
we can use the overload ofDateTime.ParseExact
that accepts multiple formats. This prevents throwing and catching an exception (an expensive operation) each and every time when parsing a date in the GnuStep format.MakeDateString
andMakeDateStringGnuStep
we should use the same format provider that we use when parsing.