We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

How to change the placeholder format in Checkout for the Gift sending date?

You can change the date format in the Gift Components template where you would replace the variable {{dateFormat}} and also the placeholder variable {{datePlaceholder}} as follows from:

HTML
<input type="date" class="gift-send-date" ng-model="form.sendTime" ng-disabled="inputDisabled()" date-format="{{dateFormat}}" placeholder="{{datePlaceholder}}"/>

To:

HTML
<input type="date" class="gift-send-date" ng-model="form.sendTime" ng-disabled="inputDisabled()" date-format="d. MMM. yyyy" placeholder="d. MMM. yyyy"/>

Here is how the format would look after the template change:

Format.png

In case you'd like to use another format, a list of attributes that can be used in the date formats is available here.

Last updated: