Compile Time

pspwill

New member
Joined
Jun 7, 2009
Messages
1
Programming Experience
1-3
I want to add the time that my app was compiled at into a label in my app. For example if you went to the about dialog on my app it would say 'Compiled 07/06/2009 20:05', any ideas on how to do this? Im using VS2008 and Visual Basic.

Thanks
 
Try
VB.NET:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim CompileTime As Date = IO.File.GetLastWriteTime("path to your exe here")
        Label1.Text = CompileTime.ToString
End Sub
 
Back
Top