Skip to content
Advertisement

How to get weekday with in out time if same time day in days to we will show like Monday-Tuesday 10:00-18:00

How to get weekday with in out time if same time day in days to we will show like Monday-Tuesday 10:00-18:00 Array ( [0] => Array ( [day] => Sunday [in_time] => [out_time] => [active_day] => 0 )

JavaScript

)

Advertisement

Answer

Simply create an associative array indexed by the time frames – and then aggregate the days by their time frame:

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