
はじめに
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埋め)

![[Flutter]Chopperを使用したリクエストでリクエストのHeadersに値を追加する方法](https://www.yukiiworks.com/wp-content/uploads/2020/08/flutter-150x150.png)

![[frappe-gantt]スクロールバーがかなり下に出るバグの対応方法](https://www.yukiiworks.com/wp-content/uploads/2019/05/javascript-150x150.png)
![[Swift]UITableViewで余分なセルを表示しない方法](https://www.yukiiworks.com/wp-content/uploads/2019/04/swift-150x150.png)
![[Tips]Slackにて.txtファイルをインライン表示するには](https://www.yukiiworks.com/wp-content/uploads/2019/11/img_ee0070963c090dc28250f1e4e3df3aaf40007-150x150.jpg)
![[Android Studio 3.5]Cause: buildOutput.apkData must not be nullエラーについて](https://www.yukiiworks.com/wp-content/uploads/2019/10/android-studio-e1585186990750-150x150.jpg)
![[AWS]Lambdaの環境変数をCLIコマンドで設定する](https://www.yukiiworks.com/wp-content/uploads/2020/04/lambda30-150x150.png)

