Mongoid parsing and storing a date
I am receiving dates from a web form that come in format of "Thursday,
November 8th 8:20 p.m. (et)". I want to ensure that I store this in
MongoDB (I'm using Mongoid as my client driver) in an appropriate DateTime
field. Using Ruby or any available type library, what's the best way to
ensure when I'm parsing this date time that I store it in a way that won't
break the DateTime field Mongoid/MongoDB support?
No comments:
Post a Comment