SyntaxFix
Write A Post
Hire A Developer
Questions
Split it by space and take first part like below. Hope this will help you.
space
var d = '12/12/1955 12:00:00 AM'; d = d.split(' ')[0]; console.log(d);