1 year ago

Fetch strtotime data as time format with am and pm

Posted 1 year ago by Deekshith

Hi, I have a table with the columns start time and end time and it doesn't have any date. I have converted time to strtotime and Stored in a database. Now I want to know how to fetch time record in time format with am and pm using Db raw query or using any other way. Please guide me. I am not storing datetime here just storing time because this time data remains constant for all days. Ex : time: 10:00 AM converted to strtotime and storing in the database. I am using angularjs ng-repeat to display data in blade file.

Please sign in or create an account to participate in this conversation.