shown in image time format hint ---today print only time like 9:30 AM or 9:30 PM ;;After yesterday print date like 7Oct or 6 Oct and after one year print 2/12/2015.how can do that in PHP.please help me
There is no builtin for this, strftime is not supposed to read current time.
The way to implement this is to get current time, compare if the printed value is older than two 12 hours or half a year and choose proper format.