Hi Forum,
I am having a tough time with dealing with formatting of times. I have seen so many posts about this on Google, but not one of them seem to provide me with the expected result.
My issue is in my code I want to be able to format all my times using GB culture formatting, however my program just falls over and crashes if its in the US format, I want a bit of code that will allow my program to always convert the value returned from the system clock to GB format.
As it always returns the following error:
String was not recognized as a valid DateTime.
sProgStart=Date Time.ParseExact (locVal, "dd/MM/yyyy HH:mm:ss", Nothing)
I have tried a millions of variations of using the formatProvider, to no avail. Any help would be greatly appreciated.
Boyindie
I am having a tough time with dealing with formatting of times. I have seen so many posts about this on Google, but not one of them seem to provide me with the expected result.
My issue is in my code I want to be able to format all my times using GB culture formatting, however my program just falls over and crashes if its in the US format, I want a bit of code that will allow my program to always convert the value returned from the system clock to GB format.
As it always returns the following error:
String was not recognized as a valid DateTime.
sProgStart=Date Time.ParseExact (locVal, "dd/MM/yyyy HH:mm:ss", Nothing)
I have tried a millions of variations of using the formatProvider, to no avail. Any help would be greatly appreciated.
Boyindie
Comment