Date.toLocaleString

地域(閲覧者の国や地域)に合わせた時間を文字列で返します。

構文

日付オブジェクト.toLocaleString()

例文

<html>
 <head>
  <title>Date.toLocaleString</title>
</head>
 <body>
  <script type="text/javascript"><!--
  dateObj = new Date();
  dt = dateObj.toLocaleString();
  document.write(dt);
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

全て携帯絵文字のみかどうかを調べる

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る