Skip to content

isValidSwiftDate

  • Timestamps in trading and payment messages: FIX UTC timestamps at the precision their digits state, leap seconds included.
isValidSwiftDate(value: string): boolean

Return true when value is a SWIFT MT value date, YYMMDD, that SWIFT accepts.

  • True exactly when parseSwiftDate returns 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 YY from 01 to 60 is 20YY, and any other is refused. So a value is valid or not on its own: 040229 is valid (2004), and 990615 and 000229 are not (error T50).
  • False for a value that is not a string.
ParameterTypeDescription
valuestringThe value to check

true for a value date SWIFT accepts, or false on invalid input

import { isValidSwiftDate } from "@northguild/gmt/finance/validate";
isValidSwiftDate("240615") // true
output 

finance/validate/isValidSwiftDate.ts

© 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.