Forum

Thread tagged as: Question, Members

Format Date Output (member joined date)

Hi! I'd like to display the date that a Member joined, but I'm having trouble re-formatting the date. It's currently outputting: 2016-02-09 00:00:00

I'd like to use textual month and 4 digit year: m ([ \t.-])* YY

I'm just not sure what to pass in.

echo 'MEMBER SINCE: '.perch_member_get('memberCreated', array()).'';

Thank you!!

Olympia Kyriakides

Olympia Kyriakides 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you're not in a template, you'll just need to use PHP to do the formatting.

strftime('%B %Y', strtotime(perch_member_get('memberCreated', array())))

Drew you're the best, perfect, didn't want to do a template! Thank you!