Sign in | Join
Last post 06-02-2008 6:38 AM by rajeshthangarasu. 3 replies.
Sort Posts: Oldest to newest Newest to oldest
I use a calendar control to input date into a textbox
But when selecting the date from Calendar I want to ensure the Date Format shown in textbox appears in this format (January 01, 1900)
Any hints?
Hi
Format
Kind regards,Wim
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged TextBox1.Text = Calendar1.SelectedDate.ToString("MMMM dd, yyyy") End Sub
Try this code:
protected void Calendar1_SelectionChanged(object sender, EventArgs e) { TextBox1.Text = Calendar1.SelectedDate.ToString("MMMM dd,yyyy"); }