By Fagault Eric on Tuesday, 03 October 2017
Posted in General
Likes 0
Views 277
Votes 0
Hello,
I am preparing an extension (Component + Module). In this extension, I would like to use the registration date of the member to display it. (In dd / mm / yy format)
Can you guide me to retrieve this information?
Best regards.
Eric
You can try this following method.


$user = ES::user();
$userRegisterDate = $user->getRegistrationDate()->format('d M Y');

echo $userRegisterDate;
·
Tuesday, 03 October 2017 19:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
Thank you very much.
On the other hand, you have put an extra bracket in what you suggested.

... ('d M Y');

Best regards.

Eric
·
Wednesday, 04 October 2017 15:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh yeah, I already modified to the correct code in my previous reply,

By the way, glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Wednesday, 04 October 2017 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post