I am using MsSQL in PHP. I am storing the time
in database table row with datetime
as datatype.The time is stored like this :08:30:00.0000000
.I need the time to be displayed in 08:30
.I have used
date('h:i', $time_value); // $time_value stores the time value
This formats the date and gives the result in 4:00. Any formatting is required to display the correct time stored in database?