0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

C#で現在日時をフォーマットした文字列を取得

Last updated at Posted at 2024-05-14

やり方

  • 月は MM、分はmm
  • 24時間表記なら HH、12時間表記なら hh
DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")

参考サイトさん

バージョン

Microsoft Windows [Version 10.0.22631.3527]
Microsoft .NET Framework Version 4.8.09032

0
0
2

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?