Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

How to reformat a date with CB userdata field?

  • lottino
  • lottino
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
8 years 10 months ago - 8 years 10 months ago #278516 by lottino
Hello, I'm trying to reformat a date field.

[cb:date format="d-m-Y"] this displays the current date

[cb:userdata field="registerDate"/] shows the full date time like this YYYY-MM-DD H:m:s


I would like to have the registerDate format displayed in any format chosen. Is it possible with Community Builder 2.0.13?
Last edit: 8 years 10 months ago by lottino.

Please Log in or Create an account to join the conversation.

  • lottino
  • lottino
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
8 years 10 months ago #279576 by lottino
Is it possible to do it with community builder?

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #279611 by nant
edit the date or datetime field and under display parameters change the format as needed.. it can be completely customized

Please Log in or Create an account to join the conversation.

  • lottino
  • lottino
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
8 years 10 months ago #279650 by lottino
Thank you but I'm not sure how to do it.
I would like to fuse the two txt strings to be able to change the date format.

[cb:userdata field="registerDate"/] (gives me YYYY-MM-DD)

[cb:date format="d-m-Y"] (current date in a chosen format...i would like to have the above result like this D-M-Y.)

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum