JavaScript’s getDate returns wrong date

The Date.parse method is implementation dependent (new Date(string) is equivalent to Date.parse(string)). While this format will be available on modern browsers, you cannot be 100% sure that the browser will interpret exactly your desired format. I would recommend you to manipulate your string, and use the Date constructor with the year, month and day arguments: … Read more

Getting the date from a ResultSet for use with java.time classes

Most database vendors don’t support JDBC 4.2 yet. This specification says that the new java.time-types like LocalDate will/should be supported using the existing methods setObject(…) and getObject(). No explicit conversion is required and offered (no API-change). A workaround for the missing support can be manual conversion as described on the Derby-mailing list. Something like: LocalDate … Read more