
はじめに
VBScriptにはjavaでいうSimpleDateFormatみたいな便利なものがないみたいなので日付フォーマットする簡単な関数を書いてみました。
システムの海外対応等で日付のアメリカ式表記とかイギリス式表記にする必要もあると思うので難しく考えないで書ける簡単なもの。
プログラム
1 2 3 4 5 6 7 8 9 10 11 12 13 | Function DateFormat(ByVal strDate) Dim strYear Dim strMonth Dim strDay strYear = Year(strDate) strMonth = Right("0" & Month(strDate), 2) strDay = Right("0" & Day(strDate), 2) DateFormat = strMonth & "." & strDay & "." & strYear End Function |
月と日付は0パディングするようにしています。(2桁になるように0埋め)

![[Pixcel 3a] 開発者モード設定方法](https://www.yukiiworks.com/wp-content/uploads/2019/04/android-150x150.jpg)
![[iOS]ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs starting from April 2020について](https://www.yukiiworks.com/wp-content/uploads/2019/09/Xcode-150x150.png)

![[Android]Error while executing: am start -n XXX.....エラーについて](https://www.yukiiworks.com/wp-content/uploads/2019/10/android-studio-e1585186990750-150x150.jpg)
![[Flutter]flutter_svgにてEXCEPTION CAUGHT BY SVG](https://www.yukiiworks.com/wp-content/uploads/2020/08/flutter-150x150.png)

