<html> <head> <title>JavaScript toLocaleString Method</title> </head> <body> <script> var dt = new Date(2018, 0, 15, 14, 39, 7); document.write( "Formated Date : " + dt.toLocaleString() ); </script> </body> </html>
以上就是如何使用当前区域设置的约定将日期转换为字符串?的详细内容,更多请关注php中文网其它相关文章!
已抢65768个
抢已抢31916个
抢已抢17552个
抢已抢8852个
抢已抢11446个
抢已抢23969个
抢