So, I am implementing twitter via twitter widget pro into a wordpress theme. I’m wanting to date the tweets differently from wordpress and from the widgets formats. I want to follow twitters date format of 5h, 23h, or 3 Mar. All I’ve been able to find is how to do the “created _ ago” “about _ old” etc… I just want to use the xh if within 24 hours, otherwise use the day and month abbreviation. I really don’t know php or too much js, so any help is very very much appreciated.
Share
Use PHP DateTime and DateInterval classes,
If you dont want to echo
00 years,00 monthsetc then checkDateTime::y,DateTime::metc properties is 0. if zero dont echo them. For example,Links of Interest,