Let's take a look at how this works in a MongoDB shell session.įirst, we can switch to a new temporary database and create three documents that each have a date field. In general, it's almost always best to store date information using the Date type and then format it for output as needed. It is important to keep in mind this distinction between these two types as it affects what operations are available, the way the information is stored, and how much flexibility it will give you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |