Skip to content
Advertisement

Extract only time from database where time is saving along with date in gridview

What should I use to get only time in gridview

I want to fetch only 03:42 but getting 01-01-1900 03:42:00 how to do this

This is code

Advertisement

Answer

will return the output in HH:MM format as 07:26

So in your query

will return the datetime into HH:MM format

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement