isValidSwiftDate
Signature
Section titled “Signature”isValidSwiftDate(value: string): booleanReturn true when value is a SWIFT MT value date, YYMMDD, that SWIFT accepts.
- True exactly when
parseSwiftDatereturns a date for the same value. It calls the parser, so the two cannot disagree. - It needs no options. SWIFT’s value-date rule fixes the year: a
YYfrom01to60is 20YY, and any other is refused. So a value is valid or not on its own:040229is valid (2004), and990615and000229are not (error T50). - False for a value that is not a string.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | The value to check |
Returns
Section titled “Returns”true for a value date SWIFT accepts, or false on invalid input
Examples
Section titled “Examples”import { isValidSwiftDate } from "@northguild/gmt/finance/validate";
isValidSwiftDate("240615") // trueSource
Section titled “Source”© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.