[SOLVED] Last Update Date Format

6 years 9 months ago - 6 years 9 months ago #295408 by highonryan
[SOLVED] Last Update Date Format was created by highonryan
Hello,

I am wanting to display the lastupdatedate field in a CB Content module. I have "Prepare using Content Plugins" set to Yes.

It displays when I use "You have not updated your account since [lastupdatedate]"

But the datetime format is Y-m-d H:i:s (i.e. "You have not updated your account since 2017-05-14 15:25:36" but I only want m-d-Y.

I tried the following:
Field > Parameters > Display > Profile View Display: Date
Field > Parameters > Display > Profile View Display: Timeago, with Ago
Field > Parameters > Display > Profile View Display: Custom > Custom Date Display Format: m-d-Y

None of these changes affect how lastupdatedate displays.

What am I doing wrong?

Thanks,
Ryan

Please Log in to join the conversation.

6 years 9 months ago #295409 by highonryan
Replied by highonryan on topic Last Update Date Format
Another rookie mistake.

In the CB Content module, I changed [lastupdatedate] to [cb:userfield field="lastupdatedate" /]

Then I deleted the H:i:s from
Field > Parameters > Display > Profile View Display: Custom > Custom Date Display Format:

This solved the problem.

Please mark this thread as "Solved" or delete it.

Thanks,
Ryan
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.170 seconds

Facebook Twitter LinkedIn