# Card expiration date

Card payments require an expiration date unless the customer creates a card token.

The expiration date is validated through the following steps:

* The expiration date field values are used, excluding any non-numeric characters.
* The values are interpreted in a four‑digit format: a two‑digit month and a two‑digit year (MMYY).

{% hint style="warning" %}
The cardholder should enter two-digit year (YY) that is greater than or equal to the current year and two-digit month (MM) that is greater than or equal to the current month.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xplorpay.com/guides/javascript/card-validations/card-expiration-date.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
