Query with string date format in mongodb
问题 I have a data like below in my mongoDB collection. I want to count the total number or search_term on today basis. _id:ObjectId("5b7e1d38981cdc1a7c8bb5fc") search_term:"Baiyoke Boutique" date:"August 23rd 2018, 9:34:32 am" _id:ObjectId("5b7e1fa8fa27fd2754080ad9") search_term:"Baiyoke Boutique" date:"August 23rd 2018, 9:44:56 am" _id:ObjectId("5b7e28314d2d0f388c1596cd") search_term:"Baiyoke Florting Market" date:"August 23rd 2018, 10:21:21 am" I have tried following query. I have used moment.