DateTime Millisecond VB.NET入門

DateTime Millisecond

DateTime構造体のMillisecond<プロパティ

このインスタンスで表される日付のミリ秒の部分を取得します。


ソース
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim dt As New DateTime

MsgBox(Now.Millisecond)

End Sub
End Class

実行結果は
実行時のミリ秒を表示されます。

シェアする

  • このエントリーをはてなブックマークに追加

フォローする

Translate »