I want to take only the hour from the date time field. For that first i apply the explode.[PHP]$Query1 = explode(" ",$row['Date']);[/PHP]
output:13:30:00 13:30:0016:20:0 016:20:00(This include hour:minutes:se conds)
And now i want to extract only first 2 digit(hour).
ex:13,13,16,16
HOw can i do that? Please help me.
output:13:30:00 13:30:0016:20:0 016:20:00(This include hour:minutes:se conds)
And now i want to extract only first 2 digit(hour).
ex:13,13,16,16
HOw can i do that? Please help me.
Comment