this date and hour format should work: %d/%m/%Y %k:%M:%S but I'm not getting the seconds: 17/02/2021 9:15:%S

Is %S compatible in CiviCRM?


1 Answer 1


Normally, (custom) date formatting in civicrm is handled by this function:


You'll see at about line 410 that there's no substitution for seconds.

Sounds like a not-very-difficult feature waiting to be added.

  • works fine. we'll do a PR on Git Mar 19, 2021 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.