Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Jean
  2. F2C field types
  3. Friday, 23 August 2013
  4.  Subscribe via email
Hi Everybody,

I'm using Form2Content Pro version 4.6.0. on Joomla 2.5.14

In my article submission form, the 'Created Date' field is pre-filled with the current date and time. The client doesn't want the time displayed, only the date.

When I pick a date from the calendar, it correctly inserts the date only.

I have created language overrides for all the DATE_FORMAT_LC... constants, but the time is still displayed when the form first loads.

I'd very much appreciate any help/suggestions.

Thanks in advance!
Attachments (1)
Accepted Answer
Julien Accepted Answer Pending Moderation
Hi Jean,

This can only be achieved with a little hack:

Back-up (!) and open this file for editing:

components/com_form2content/models/fields/f2ccalendar.php

Change line 76 from:

$dateFormat = str_replace('%','', $format) . ' H:i:s';

to:

$dateFormat = str_replace('%','', $format);

best,
Julien
  1. more than a month ago
  2. F2C field types
  3. # Permalink
Responses (2)
Jean Accepted Answer Pending Moderation
Thanks Julien, works like a charm!:)
  1. more than a month ago
  2. F2C field types
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.