http://9chat-e.mynt.work/?c=radio/contents&id=383
プログラミング学習に役立つ情報をお伝えするラジオ番組
質問ページ
https://teratail.com/questions/334244
解答サンプル
new Date(Date.parse("2021/04/20 17:41:28")).getFullYear();
> 2021
new Date(Date.parse("2021/04/20 17:41:28")).getMonth()+1;
> 4
new Date(Date.parse("2021/04/20 17:41:28")).getDate();
>20
new Date(Date.parse("2021/04/20 17:41:28")).getHours();
> 17
new Date(Date.parse("2021/04/20 17:41:28")).getMinutes();
> 41
new Date(Date.parse("2021/04/20 17:41:28")).getSeconds();
> 28