Hi All,
May I know how to show Date format on my textbox as 05/09/07 instead of 05/09/07 12:00:00 AM.
I'm using VB language. Thanks
Hi asrul,
You need to specify the format as below.
txtDate.Text = DateTime.Now.ToString("dd/MM/yy")
Dim dates As String = "05/09/07 12:00:00 AM" txtDate.Text = Convert.ToDateTime(dates).ToString("MM/dd/yy")
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.