Read the documentation again.
 http://www.h2database.com/html/functions.html#parsedatetime


On Fri, Dec 21, 2012 at 10:41 PM, Oliver Schrenk
<[email protected]>wrote:

> Hi,
>
> Is there a way to influence the Locale parsedatetime [1] is using to parse
> dates/times?
>
> I have a date
>
> 16-MAR-06 03.49.39.390000000 PM
>
> that can't be converted using the pattern
>
>  dd-MMM-yy hh.mm.ss.S a
>
> although it follows the pattern defined in [2]. I think it's because
> parsedatetime defaults to the machines Locale, because when I parse the
> date with
>
> new SimpleDateFormat("dd-MMM-yy hh.mm.ss.S a", Locale.ENGLISH)
> .parse("16-MAR-06 03.49.39.390000000 PM");
>
> it works fine.
>
> [1] http://www.h2database.com/html/functions.html#parsedatetime
> [2]
> http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html#month
>
> Best regards
> Oliver Schrenk
>
> OSX 10.8.2
> h2 1.3.170
>
>  --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/h2-database/-/5XC5sBul6EIJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/h2-database?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to