LoginSignup
20

More than 5 years have passed since last update.

input type = 'date' に初期値を設定したいときの日付フォーマット

Posted at

意外と情報が少なかったのでメモ。

  <input type='date' value='2014-03-18'>

YYYY-MM-DDの形式で入れてやるとちゃんと初期値が表示されます。
それ以外の場合は、valueに値を入れても画面に表示されませんでした。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20