JHTML-BEHAVIOR-CALENDAR-001

JHtml::_('behavior.calendar')

behavior.calendar

The old MooTools calendar load is gone. The calendar HTMLHelper still exists and pulls modern assets.

JHtml::_('behavior.calendar')HTMLHelper::_('calendar') + WAM assets

Dies at Joomla 3 → 4J3: Works nativelyJ4: Changed behaviourJ6: Changed behaviourBC plugin: partialPatch possible — review itJavaScript

Symptoms people search

date picker missing · calendar.js 404

Replace this code

Swap JHtml::_('behavior.calendar') for HTMLHelper::_('calendar') + WAM assets.

Joomla 3

Remove or stop calling this

JHtml::_('behavior.calendar');
echo JHtml::_('calendar', $value, 'created', 'created');

Joomla 4 / 6

Use this instead

echo HTMLHelper::_('calendar', $value, 'created', 'created', '%Y-%m-%d');

How to fix it

  1. 1Stop calling behavior.calendar.
  2. 2Use the calendar helper which registers assets itself.

Also known as

behavior.calendar · calendar.js

Related issues

Get in touch

Have a project in mind? Let's talk about it.

Tell us what you're building. Whether it's a new site, an online store, a mobile app, or something that needs AI under the hood, we'll get back to you within a business day.

Free consultation
No commitment, no pressure
Reply within 24 hours
Usually much faster

Prefer a direct conversation?

Request a project quote

Tell us about your project

Fill out the quick form and we'll reach out.