Date/time formats in CB and CBSubs

6 years 6 months ago #298315 by RobGG
Date/time formats in CB and CBSubs was created by RobGG
Hi,
Many of the internal date formats are in the form of yyyy-mm-dd hh:mm:ss while registration pages can be accept dd/mm/yyyy. In some presentations of data to back to members both formats are presented. Is there any guidance available to present the date information consistently?
Regards, Robert

Please Log in to join the conversation.

6 years 6 months ago #298320 by krileon
Replied by krileon on topic Date/time formats in CB and CBSubs
Dates and datetimes are always stored as UTC SQL formatted. They will display in whatever format you've selected within CB > Configuration > General or if you've overridden them at their usage (e.g. in the field). The displays should all be consistent throughout your site. If you're substituting a date or datetime field then be sure to use [cb:userfield field="FIELD_NAME" /] if you want it formatted as [FIELD_NAME] is the raw database value.


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 to join the conversation.

6 years 2 months ago #302109 by activha
Replied by activha on topic Date/time formats in CB and CBSubs
Jumping on this topic, is there a way to format the dates in CBsubs invoice settings with another presentation ?

Say 12 septembre 2018 instead of 12/09/18 ?

Can we use the following in CBsubs settings ?
[cb:parse function="date" date-format="dd-mmm-YYY" offset="UTC"] [DATE_ORDERED] [/cb:parse]

Thanks

Please Log in to join the conversation.

6 years 2 months ago #302119 by krileon
Replied by krileon on topic Date/time formats in CB and CBSubs

Jumping on this topic, is there a way to format the dates in CBsubs invoice settings with another presentation ?

No, there are no parameters for that specifically. Date and Time formatting is generally based off what you've selected within CB > Configuration > General.

Can we use the following in CBsubs settings ?
[cb:parse function="date" date-format="dd-mmm-YYY" offset="UTC"] [DATE_ORDERED] [/cb:parse]

No, CB Auto Actions format functions only work in CB Auto Actions.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.195 seconds

Facebook Twitter LinkedIn