DateString.toLocaleUpperCase

地域(閲覧者の国や地域)に合わせた日時を英大文字にした文字列で返します。返される文字列はブラウザによって異なるので注意が必要です。Internet Explorer 5.5より古いバージョンでは動作しません。

構文

日付文字列.toLocaleUpperCase()

例文

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

関連記事

スポンサーリンク

~演算子 正規表現によるパターンマッチング

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

上に戻る