I have a field in an sql server table with a fieldtype of time.
I am trying to use the following code to format the time in a datalist
However I am getting the error 'Input string was not in a correct format.'
Help please
Thanks
I am trying to use the following code to format the time in a datalist
Code:
<%# Eval("AppointmentTime", "{0:hh:mm tt}") %>'
However I am getting the error 'Input string was not in a correct format.'
Help please
Thanks