Format check
Format checks are performed on the date, check digit, time, currency code, and country code fields.
For date fields, the format check verifies that the date provided is valid. The format check ensures the range of the month, day, and year are valid and also that the date is valid. For example, 2/29/2008 is valid since 2008 was a leap year, but 2/29/2007 fails because 2007 was not a leap year.
A format check for a check digit is computed from the characters given and compared to the given check digit to verify it is correct.
For a time field, format check verifies the hour and minute are within the appropriate ranges. The hour range is 0 - 23 and the minute range is 0 - 59.
The following table shows the formats that are supported.
Format | Description |
---|---|
YYYYMMDD | Date, where:
|
YYMM | Date, where:
|
MMDD | Date, where:
|
MMYY | Date, where:
|
hhmm | Time, where:
|
hhmmss | Time, where:
|
TTTTAAAAC | Routing number with check digit, where:
|
bTTTTAAAAC | Routing number with check digit, where:
|
C | Check digit is a single character field that checks the preceding eight characters. |
TTTTAAAA | Routing number without check digit, where:
|
CP00RSNNN | Canadian ICL format, where:
|
CanadianRT | Validation uses the Canadian routing transit number format. |
CountryCode | All two letter country codes as defined in ISO 3166. |
CurrencyCode | All three letter and three digit currency codes as defined in ISO 4217. |