search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Custom today text

Asked by Anonymous
20 hours ago.

How do we change the Today button text based on the culture

Comment posted by Anonymous
19 hours ago.

We thought may be it should be defined in the culture definitions.

Answer posted by Dan Letecky [DayPilot]
1 hour ago.

I assume you mean the DayPilot.DatePicker component.

In the latest sandbox build (2025.3.6533), you can now set a custom text of the “Today” button using the todayText property:

const picker = new DayPilot.DatePicker({
    target: 'start',
    pattern: 'yyyy-MM-dd',
    todayText: "Today",
    onTimeRangeSelected: args => {
        dp.startDate = args.start;
        dp.update();
    }
});

At this moment, the locale is limited to date/time properties so this is available as a separate option.

Comment posted by Anonymous
25 minutes ago.

It would be great if it could be within the locale class so we don’t have to keep setting it based on different locales.

Thanks

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):