I have a calendar control on my page and in my codebehind page I want to format the date in the calendar control to "yyyy-MM-dd hh:mm".
This is what I have but does not seem to work
Dim sDate1 As DateTime
sDate1 = Format(calStartDate.SelectedDate, "yyyy-MM-dd hh:mm")
What returns is #12/3/2008 12:00:00 PM# (if the user selected this date)
Thanks with the help,
K
This is what I have but does not seem to work
Dim sDate1 As DateTime
sDate1 = Format(calStartDate.SelectedDate, "yyyy-MM-dd hh:mm")
What returns is #12/3/2008 12:00:00 PM# (if the user selected this date)
Thanks with the help,
K