Developers

How to Format a User’s Joined Date

How to Format a User’s Joined Date

With RebelMouse's Layout & Design Tool, it's quick and easy to change how a user's information is formatted and displayed on their profile page.

In this post, we'll go through the steps necessary to expose and customize the way a user's joined date is displayed and formatted.


How to Expose and Format a User's Joined Date

Start by opening the Layout & Design Tool, navigate to your Profile Page, add a Custom HTML element to the layout, and then open the Code view.

Next, change the source code to the following:

<jinja>
  <![CDATA[
]]>
</jinja>

Then, click Apply. Once applied, your element should change from Custom HTML to Jijna Template:

From here, you have a few choices on how you would like the information to be displayed. The first option is to paste the raw variable and print the date:

<div>{{context.site.user_site_data.created|safe}}</div>

You can also format the date using the method strftime(). This will display the calendar month and year instead of the exact date and time.

<div>{{context.site.user_site_data.created.strftime('%B %Y')|safe}}</div>

The following screenshot shows both examples being displayed at once. The first option is on top, and the second option is right below it.

If you have any questions on how to complete these steps, please reach out to your account manager or email support@rebelmouse.com.

What Is RebelMouse?
Request a Proposal

Where 
Websites Are Built

The Fastest Sites in the World Run on RebelMouse

Let’s Chat

new!

RebelMouse Performance Monitoring

Real-Time Core Web Vitals

Get Started
DISCOVER MORE

Our Core Features

Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:

animate
Layout and Design toolLayout and Design tool on mobile
animate

Why RebelMouse?

Unprecedented Scale

RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.

120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User

Today's Top Websites Use RebelMouse

Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.

upworthyindy100Vault12No Film SchoolRawStoryResponsible StatecraftPrideMNI Market NewsPremierGuitarPenskeINN Educate Brand ConnectThe FulcrumGZEROOkayafricaBrit+CoPaper MagazinePowerToFlyNarcityCommonDreamsAllBusiness

What Clients Say

We’re here to help you weigh and understand every tech and strategic decision that affects your digital presence. Spend less time managing everything yourself, and more time focused on creating the quality content your users deserve.

Case Studies

A Team Built Like No Other

RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.

Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.

Let's Chat