lblDate.text = Application.LastModifiedDate

hi, i want a label to display the current exe's last modified date
how can i do this?
jxhardingAsked:
Who is Participating?
 
xersoftCommented:
does this work?

        Dim file As New IO.FileInfo(Application.ExecutablePath)
        If file.Exists Then
            MsgBox(file.LastWriteTime.ToString)
        End If
0
 
reclusiveCommented:
*grin*

Label1.Text = file.LastWriteTime.ToString

Should do the trick also
0
 
xersoftCommented:
oops :) yeah your right Reclusive, showing a messagebox won't set the text on a label :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.