How to Remove Time In DateTime using Jquery?
This my datetime 2016-05-04T09:48:38+08:00
And i want to make it 05-04-2016
(mm/dd/yyyy)
Thanks
Please refer below code
HTML
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript"> var date = new Date('2016-05-04T09:48:38+08:00'); alert((date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear()); </script> </head> <body> </body> </html>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.