× Please quote us your Systemkonfiguration, discribe us as detailed as possible, what do not work.

Please do not tell us, something didn't work!

Time on Date picker

11 years 8 months ago #343 by marcrausch
Hi, how do I remove the time stamp from the date picker, I just wnt the form to show the date and not also the time when a user selects the date from the date picker

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

11 years 8 months ago #344 by Maike
Replied by Maike on topic Time on Date picker
Hi marcrausch,

currently, the date picker is hardcoded to Year-Month-Day Hour:Minute:Second in the component.

We will make this option configurable in the next version, thank you for your improvement suggestion!


maike

If you like our extensions and think they are worth 5 stars, please write a review in the JED

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

11 years 8 months ago #345 by marcrausch
Replied by marcrausch on topic Time on Date picker
Thank you Maike

Is there no way I can manually change that any of the php or xml files?

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

11 years 8 months ago #346 by Maike
Replied by Maike on topic Time on Date picker
Hi marcrausch,

you can change the hardcoded time format by directly editing it in the frontend view php file.

In your joomla installation, go to the directory /components/com_extroforms/views/efforms/tmpl/ , there you can find the php files that control frontend output.

Depending on which view you want to use (default, static, etc.), you need to edit the respective file, eg default.php for the default view. Search for '%Y-%m-%d %H:%M:%S' (the hardcoded time format) and replace every occurrence of it (should be 5 times) with your own time format, eg '%Y-%m-%d' if you only want to use Year-month-day in the date picker. For a full list of date format options take a look here: de3.php.net/manual/en/function.date.php

But normally, only Year, month, day, hour, minute and second should be needed.

maike

If you like our extensions and think they are worth 5 stars, please write a review in the JED

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

11 years 8 months ago #347 by marcrausch
Replied by marcrausch on topic Time on Date picker
Perfect!! Thank you Maike, done and working :)

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

Moderators: forumsupport
Powered by Kunena Forum