Skip to Content Skip to Menu

[SOLVED] date format

9 years 7 months ago - 9 years 7 months ago #260557 by giorgionasis
[SOLVED] date format was created by giorgionasis
hallo there,

i see from the configuration about the date format that there are fixed options.

i want to hide entirely the time format from the frontend and for the date format i would like to insert a format of my own.

how can i achive that?

thank you!
Last edit: 9 years 7 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #260588 by krileon
Replied by krileon on topic date format
Edit your datetime field then under Parameters > Display set "Profile View Display" to "Custom". Then set "Custom Time Format" to " " (yup, that's a space; needed for now as blank value will just fallback to default atm). Now adjust "Custom Date Format" as needed. The formatting it uses is the format variables allowed by PHPs date function.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

9 years 7 months ago #260617 by giorgionasis
Replied by giorgionasis on topic date format
hallo kyle,

i understand what you mean but i don`t need this. i use a plugin that it takes the global datetime configuation. i mean configuration-> General -> Date Format. The plugin uses the global configuration date time.

so how can i configure it?

thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #260643 by krileon
Replied by krileon on topic date format
You can't supply a custom global date and time configuration within CB > Configuration > General. It has to be configured on a use by use basis (e.g. if the plugin provides a parameter).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

9 years 7 months ago #260671 by giorgionasis
Replied by giorgionasis on topic date format
hallo there,

the plugin unfortunately does not offer an option to select a date format. it uses cb core general date format.

is there not any solution?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #260735 by krileon
Replied by krileon on topic date format
The only alternative is to use a language string to override the date format globally. To do this you need to have installed the English language plugin or some other language plugin as modifying the default_language is not advised. See the below for details regarding this.

www.joomlapolis.com/cb-solutions/languages

Once done you need to add the following language strings to it, which you can supply your custom PHP date function format.

Code:
'UE_DATE_FORMAT' => 'Y-m-d', 'UE_TIME_FORMAT' => 'H:i:s',


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum