Monday, June 6, 2011

Get Weekday name

To get the WeekDay name you have to create a button like on the picture bellow:




After, write the code:

    Dim getdate As Date

        getdate = Now

        MessageBox.Show("Weekday name: " & getdate.ToString("dddd"), _
    "Date exercise")


The resul is as on the picture bellow:

No comments:

Post a Comment

There was an error in this gadget