Skip to main content

Posts

Showing posts from November, 2020

How to convert JavaScript Date without time stamp

 At some point when setting pika date min date I had to use JavaScript date variable without time stamp. When you try JavaScript new Date() in browser console, you can see date with time stamp. To remove time stamp what I did was use new Date with year , month and day parameters. new Date(new Date().getFullYear(),new Date().getMonth() , new Date().getDate())