In this blog you will find ASP.NET 3.5 articles and some code samples. These code samples are created by me and should be working. Thanks for visiting my blog! Happy Dot Netting

Thursday, July 3, 2008

Subroutine to get date in format 12/26/2008

 Public Sub LabelUIDate()
        Dim TodayDay = Day(Today())
        Dim TodayMonth = Month(Today())
        Dim TodayYear = Year(Today())
        Dim TodayDate = TodayMonth & "/" & TodayDay & "/" & TodayYear
        'LabelDate.Visible = False
        LabelDate.Text = TodayDate

    End Sub

No comments: