Parsing date string with OracleDate.Parse for non-English date

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
JacksonC
Posts: 2
Joined: Wed 11 Nov 2015 07:30

Parsing date string with OracleDate.Parse for non-English date

Post by JacksonC » Wed 11 Nov 2015 07:32

Hi,
I am having a problem trying to parse date string with OracleDate.Parse for formats like DD-MON-YYYY in non-English environment.
For example, with a NLS_DATE_LANGUAGE of "IRISH", Oracle expects 25-BEAL -2006 but OracleDate.Parse can only parse 25-May-2006.

How can I specify the language for OracleDate.Parse to parse multiple different date languages in the same application?

JacksonC
Posts: 2
Joined: Wed 11 Nov 2015 07:30

Re: Parsing date string with OracleDate.Parse for non-English date

Post by JacksonC » Wed 11 Nov 2015 07:34

I also tried changing the date language of the object gotten from OracleGlobalization.GetApplicationInfo, then passing it back with SetApplicationInfo to see if it is related but it does not seem to help.

Shalex
Devart Team
Posts: 8088
Joined: Thu 14 Aug 2008 12:44

Re: Parsing date string with OracleDate.Parse for non-English date

Post by Shalex » Thu 12 Nov 2015 15:56

OracleDate.Parse doesn't support non English dates at the moment. Please submit your request at http://devart.uservoice.com/forums/2251 ... rt-general.

Post Reply