Home » 2011 » August » 29

Archive for August 29, 2011

VB.NET date and time format

Date as Monday, August 29, 2011 Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load Dim dd As Date = Date.Today label1.Text = String.Format(“{0:dddd, MMMM d, yyyy}”, dd) End Sub Other formats… ‘ – month/day numbers without/with leading zeroes String.Format(“{0:M/d/yyyy}”, dt); ‘ “8/29/2011” String.Format(“{0:MM/dd/yyyy}”, dt); ‘ “08/29/2011” ‘ – day/month names String.Format(“{0:ddd, MMM d, […]