Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Change date format
Tagged: date format
- This topic has 9 replies, 2 voices, and was last updated 4 years, 9 months ago by Maria Axelsson.
- AuthorPosts
- February 6, 2020 at 8:28 pm #105901Maria AxelssonParticipant
Hi,
I have created custom fields in WCFM Multivendor where the seller, or in my case renter, picks a date when a product is available.
I now want to use a plugin called Search and filter pro, to search for products in my Multivendor website. This plugin requires the date format to look like this: 06022020 (or: 20200206). But in WCFM is looks like this: 2020-02-06. Is there a way to change this?
- February 7, 2020 at 1:05 pm #106077Maria AxelssonParticipant
Any one knows if this is possible?
- February 10, 2020 at 2:35 pm #106427WCFM ForumMember
Well, WCFM shows and save dates in format of site’s default date format – wp-admin -> Setting -> gneral
Now, if you want to save dates in custom format hence it will require custom coding.
Kindly show me your custom field setting screenshot.
Thank you
- February 14, 2020 at 3:18 pm #107135Maria AxelssonParticipant
Well, no it don’t seem so. I have changed the format in Settings, but when I pick a date in WCFM it automatically turns to YYYY-MM-DD with the “-“.
Thanks.
Attachments:
You must be logged in to view attached files. - February 19, 2020 at 2:18 pm #107791WCFM ForumMember
Hi,
when I pick a date in WCFM it automatically turns to YYYY-MM-DD
– Where? Show me screenshot please.
Thank You
- February 19, 2020 at 3:44 pm #107848Maria AxelssonParticipant
I created custom fields and choose date picker. When the vendor then is adding a product and choosing a date (from a calendar that pops up) it automatically gets the format YYYY-MM-DD
Attachments:
You must be logged in to view attached files. - February 25, 2020 at 12:06 pm #108649WCFM ForumMember
Well, this is because it’s not a valid PHP date format – https://wclovers.com/wp-content/uploads/2020/02/Ska%CC%88rmavbild-2020-02-14-kl.-10.43.30.png
- February 25, 2020 at 1:09 pm #108680Maria AxelssonParticipant
Hm, okay. But that is the format that my search plugin uses. Is there a way to use this date format in WordPress/WCFM?
- March 4, 2020 at 12:45 pm #109833WCFM ForumMember
Well, I think it will be best to contact your search plugin support and ask them to support WP standard date formats.
- March 5, 2020 at 1:47 pm #110073Maria AxelssonParticipant
I did that first, but they told me to contact you instead haha. But okay, thank you for your help.
- AuthorPosts
- You must be logged in to reply to this topic.