In mongodb adhoc query, before executing the query, how to format the date type element to dd\mm\yyyy format and then execute the query?
In mongodb adhoc query, before executing the query, how to format the date type
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I solved this by inserting the datetime as integer using the getTime() method in java.
EG:
I used the above line of code to insert date as integer.With this it was easy to fetch records between a particular date.