【发布时间】:2022-12-27 18:04:03
【问题描述】:
I have this string returned to me 2022/2/23. And some other times 2022/2/23 16:32:23.
I want to make this: if dateString has no time in it then blabla.
How can I check if my string has a time string in it?
【问题讨论】:
-
I'd consider using a JS regex. For example: stackoverflow.com/a/38403498/421195
标签: typescript