[JAVA-1912] Support for Joda DateTime on par with Date Created: 03/Aug/15 Updated: 02/Oct/16 Resolved: 02/Oct/16 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Ajeet Ganga | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
Currently Java driver support primitive datatypes and the Java Date. But as acknowledged even by Java framework people, Joda DateTime is a better than Java-7 provided DateTime framework. While Java-8 has accepted this and integrated Joda Datetime style, it will be a while before all the enterprise will move to Java-8. Meanwhile, if Java-driver provides out of box support to Joda-DateTime, it will be enhance mongodb's support for existing Java coding convention, which is to use Joda-DateTime whenever possible over Java-Date. |
| Comments |
| Comment by Jeffrey Yemin [ 08/Oct/15 ] |
|
In that case please see http://mongodb.github.io/mongo-java-driver/3.0/bson/codecs/ for an example of how to do this. |
| Comment by Ajeet Ganga [ 04/Aug/15 ] |
|
<dependency> |
| Comment by Jeffrey Yemin [ 03/Aug/15 ] |
|
Generally we don't take third party dependencies like Joda, but there are ways to configure the driver to use use Joda DataTime. What version of the driver are you using? |