How can i save date and time separately in mongoDB collection? How can i save date and time separately in mongoDB collection? mongoose mongoose

How can i save date and time separately in mongoDB collection?


After reading lot of blogs got only solution is that to use "String" datatype for mongoDB schema. If we use "Date" as datatype then we can't get desired result.