将[HH:MM AM/PM]转换为Mongo DB中的ISO日期
我有两个字符串值,其中包含开始时间和结束时间。他们采用以下格式:
StartTime 07:00 AM
EndTime 10:00 PM
我需要检查当前日期时间是否在这些开始和结束时间内。 因此,我需要将以上两个字符串转换为ISO DateTime。
转换[HH:MM AM/PM]
字符串到Mongo DB中的ISO日期时间的最佳方法是什么?
I have two string values which contains Start Time and End Time. They are in following format:
StartTime 07:00 AM
EndTime 10:00 PM
I need to check whether Current Date Time is within these Start and End times.
Therefore, I need to convert above two strings to ISO datetime.
What is the best way to convert [HH:MM AM/PM]
string in to ISO date time in Mongo DB?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论