以下の内容はhttps://www.k-hitorigoto.online/entry/2022/09/06/080000より取得しました。


yyyymmdd(年月日)を取得したい

Windows(CMD,Powershell)、Linux(bash)でyyyymmddを取得する方法の備忘

検証環境

Windows

Windows 10 Home 21H2

PSVersion                      5.1.19041.1682

Linux

CentOS Linux release 7.9.2009 (Core)

OS別yyyymmdd取得方法

Windows(CMD)

echo %DATE:~-10,4%%DATE:~-5,2%%DATE:~-2,2%
20220904

Windows(Powershell)

(Get-Date).ToString("yyyyMMdd")
20220904

Linux(bash)

$ date '+%Y%m%d'
20220904



以上の内容はhttps://www.k-hitorigoto.online/entry/2022/09/06/080000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14