Displaying a UTC date-time from DB in local-time in a GridView

K

Kevin Frey

Our database stores all date-time values in UTC format. When I display this
data in a GridView (using a HyperLinkField) I'd like to display the
equivalent local-time instead.

It seems to me that this would have been trivially easy if there was a
formatting string that would make the conversion prior to formatting. But
alas there appears to be no such capability.

Without this approach, I'm not sure where I would inject the "ToLocalTime"
conversion.

Can anyone suggest how to do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top