private DateTime MyDate = DateTime.Parse( "31/08/08" );
My PC is set for the day/month/year format which is used by DateTime.Parse. When I send my strategy to someone in the US where month/day/year is used, the parsing fails.
There is an optional parameter to Parse which is IFormatProvider provider. I'm certain that this is how I could force use of my date format regardless of the local convention. However I have been unable to find any documentation or examples of IFormatProvider.
Could someone suggest a link to some documentation or prvide an example?
Thanks,
RVRoman
Comment