I’m getting data in the form of date and time:
Monday Jan 23 10:14:27 2024
How in Javascript using .replace to remove everything except time without seconds:
10:14
.
Please tell me, because I am already lost in these regular expressions.
Thank you all.
2
Answers
Use
String.prototype.match
You could simply convert this string to date and extract the required information from it.