Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在の日付と時刻を取得したい。
例えば:
2012/11/13 06:30:38
私が試したこと:
Dim d As System.DateTime MsgBox(d.Year) 'Return 1
使用するDateTime.Now
DateTime.Now
これを試して:
DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")
現在の日時を取得
Now.ToShortDateString() DateTime.Now Today.Now