yes, this is a good solution. the base of the problem is that mongo does not actually has a Date type, just DateAndTime (even if is called Date). So if you want a Date, you need to do some conversion.
Esteban > On 4 Mar 2017, at 11:25, Hilaire <hila...@drgeo.eu> wrote: > > Concerning this problem, one option I found is to get far away of the > Voyage/Mongo Date/DateAndTime representation/conversion and stick to > string, not really efficience, but well... > > mongoBirthday > <mongoDescription> > ^ VOToOneDescription new > attributeName: 'birthday'; > accessor: (MAPluggableAccessor > read: [:person | person birthday ifNotNil: [person birthday > yyyymmdd]] > write: [:person :string |string ifNotNil: [person birthday: > string > asDate]]); > yourself > > > Le 03/03/2017 à 21:12, Hilaire a écrit : >> Not sure it is related to this: >> http://forum.world.st/Possible-bug-with-Voyage-Mongo-date-tt4735597.html > > -- > Dr. Geo > http://drgeo.eu > >