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.
Label1.Text = Date.Nowを使用すると、 「10-07-2013 06:59:30」を追加できました
秒を表示したくありません。どうすればvb.netでそれができますか。
Date.ToString() を使用すると、1 つのオーバーロードで、出力される正確な日付形式を指定できます。
Date.Now.ToString("MM-dd-yyyy")
また
デフォルトの出力を 10 文字にトリムするだけです。
Date.Now.ToString().Substring(1,10)