Retrieve Bios Date and Time VB .net

How can i using a windows apllication made in VB .net access a pc's (in which the software is installed in) BIOS date and time and use it as a verification for a trial period of the application?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

YOu can do it with WMI

'ref NET   System.Management

Public Class Form1
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "
#End Region

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim strComputer As String = "."
        Dim objWMIService As Object = GetObject("winmgmts:" _
            & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
        Dim colBIOS As Object = objWMIService.ExecQuery _
            ("Select * from Win32_BIOS")
        Dim objBIOS As Object
        Dim msg As String
        Dim i As Integer

        For Each objBIOS In colBIOS
            msg &= "Build Number: " & objBIOS.BuildNumber & _
            " Name: " & objBIOS.Name & _
            " Release Date: " & objBIOS.ReleaseDate & _
            " Serial Number: " & objBIOS.SerialNumber & _
            " SMBIOS Version: " & objBIOS.SMBIOSBIOSVersion & _
            " SMBIOS Major Version: " & objBIOS.SMBIOSMajorVersion & _
            " SMBIOS Minor Version: " & objBIOS.SMBIOSMinorVersion & _
            " SMBIOS Present: " & objBIOS.SMBIOSPresent & _
            " Status: " & objBIOS.Status & _
            " Version: " & objBIOS.Version
            For i = 0 To UBound(objBIOS.BiosCharacteristics)
                msg &= " BIOS Characteristics: " & _
                    objBIOS.BiosCharacteristics(i) & vbCrLf
    End Sub
End Class

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Take a look at the activelock activeX Control

Just drop it on you Form and a few lines of code will allow you to even register and detect Date/Time changes

And best of all... Its free and open source

Here you go ;)

Hope this helps
real_ashwinAuthor Commented:
hi how can i share the points between the teo of you as i haven't had time at work to try them out and they both look correct thank you both.
This is the Windows time, it is shorter and simpler and I doubt someone will change thier windows date/time to avoid purchasing a product.

Dim t As DateTime = Now
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

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.