forsters
asked on
Grid View time format - hide seconds
Hi Experts,
This is one of those irritating things that I've never found a solution to. I'm using a grid view to display some sql data including a 'time (7)' field, by default this displays as hh:mm:ss. I'd like to hide the :ss part.
I have tried a couple of methods but neither have any impact:
Text='<%# Bind("otEnd","{0:HH:mm}") %>'
DataFormatString="{0:t}
In both the above examples the time continues to display in the format hh:mm:ss (grrrr) anyone...?
This is one of those irritating things that I've never found a solution to. I'm using a grid view to display some sql data including a 'time (7)' field, by default this displays as hh:mm:ss. I'd like to hide the :ss part.
I have tried a couple of methods but neither have any impact:
Text='<%# Bind("otEnd","{0:HH:mm}") %>'
DataFormatString="{0:t}
In both the above examples the time continues to display in the format hh:mm:ss (grrrr) anyone...?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER