Link to home
Start Free TrialLog in
Avatar of forsters
forstersFlag for United Kingdom of Great Britain and Northern Ireland

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...?
ASKER CERTIFIED SOLUTION
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of forsters

ASKER

Thank you