Swift Date Formats

Overview SwiftDate exposes several convenient functions to print (and parse, of course) dates and time intervals as strings: as custom string defined by tr35-31format; for example 'yyyy-MM-dd'for '2015-01-05' as ISO8601strings with all available sub specs.

  1. Swift Date From String
  2. Swift Date Timezone
  3. Ios Date Formatter
  4. Swift Date Formatting

SWIFT message types are the format or schema used to send messages to financial institutions on the SWIFT (Society for Worldwide Interbank Financial Telecommunication) network. The original message types were developed by SWIFT and a subset was retrospectively made into an ISO standard, ISO 15022. In many instances, SWIFT message types between custodians follow the ISO standard.[1] This was later supplemented by a XML based version under ISO 20022.

Composition of MT number[edit]

Swift Date From String

SWIFT messages consist of five blocks of data including three headers, message content, and a trailer. Message types are crucial to identifying content.

All SWIFT messages include the literal 'MT' (message type). This is followed by a three-digit number that denotes the message category, group and type. Consider the following two examples.

Example 1

Swift Date Formats

Swift Date formatting and String to Date Conversion The DateFormatter class is a subclass of the Formatter abstract class that can be used to convert a Date object into a human-readable string. It can also be used to convert a String representation of a date into a Date object. Working with the SWIFT community, SWIFT Standards operates the annual maintenance process for MT, which ensures that the standard evolves to meet changing market needs. SWIFT Standards, under contract to ISO, also maintains two open messaging standards: ISO 15022, which is used for securities settlement and asset servicing, and ISO 20022, which.

MT304

  • The first digit (3) represents the category. A category denotes messages that relate to particular financial instruments or services such as precious metals (6), treasury (3), or traveller's cheques (8). The category denoted by 3 is treasury markets
  • The second digit (0) represents a group of related parts in a transaction life cycle. The group indicated by 0 is a financial institution transfer.
  • The third digit (4) is the type that denotes the specific message. There are several hundred message types across the categories. The type represented by 4 is a notification.

A MT304 message is considered an 'Advice/Instruction of a Third Party Deal' and it used to advise of or instruct the settlement of a third party foreign exchange deal. [2] For example, an asset manager who executed a FX transaction with a broker would send a MT304 instruction to the custodian bank of the client.


Example 2

Swift Date Timezone

Swift Date Formats
  • The first digit (1) represents the category. The category denoted by 1 is customer payments and cheques.
  • The second digit (0) represents a group of related parts in a transaction life cycle. The group indicated by 0 is a financial institution transfer.
  • The third digit (3) is the type that denotes the specific message. There are several hundred message types across the categories. The type represented by 3 is a notification.

A MT103 message is considered a 'Single Customer Credit Transfer' and is used to instruct a funds transfer.[3]

Overview of SWIFT MT categories[edit]

The table below shows the different categories and the message type descriptions.

CategoryMessage typeDescriptionNumber of message types
0MT0xxSystem messages-
1MT1xxCustomer payments and cheques19
2MT2xxFinancial institution transfers18
3MT3xxTreasury markets27
4MT4xxCollection and cash letters17
5MT5xxSecurities Markets60
6MT6xxTreasury markets – metals and syndications22
7MT7xxDocumentary credits and guarantees29
8MT8xxTraveller's cheques11
9MT9xxCash management and customer status21

ISO 15022 MT[edit]

Although ISO 15022 message types are different in their structure than the SWIFT MT, the naming convention remains the same.

See also[edit]

  • ISO 9362 (standard format for SWIFT IDs)

External links[edit]

  • Message standards supported by the SWIFT network: 'Standards MT & MX Equivalence Table'(PDF). SWIFT. 28 July 2017.
  • Message types defined in ISO15022 'ISO15022 Data Field Dictionary - Index of Messages'. ISO.

References[edit]

  1. ^McGill, R.; Patel, N. (2008). Global Custody and Clearing Services. Basingstoke, Hampshire: Springer. p. 27. ISBN9781349282883.
  2. ^'List of all SWIFT Messages Types'. Paiementor. Retrieved 2020-01-07.
  3. ^'List of all SWIFT Messages Types'. Paiementor. Retrieved 2020-01-07.
Retrieved from 'https://en.wikipedia.org/w/index.php?title=SWIFT_message_types&oldid=1019306123'

Ios Date Formatter

Working with NSDate, NSDateFormatter, and NSDateComponents can be a little convoluted, so I’ve created myself a cheat sheet that will be updated as I discover new tips and tricks in this realm.

Swift Date Formats

The new cheat sheet can be found over at GitHub in the form of an Xcode Playground:

  • Swift Dates Cheat Sheet Playground
Swift Date Formats

Topics that are included in the Playground are as follows:

  • Getting today’s date
  • Converting NSDate to String
  • Converting String to NSDate
  • Getting components of an NSDate
  • Setting components of an NSDate
  • Creating new NSDate instances from NSDateComponent instances

The best way to view this cheat sheet is by downloading the playground from GitHub, but here’s a straight copy-paste from the repo in case you just want to copy and paste it into a playground of your own from here:

  • Parse PFCloud – “JSON text did not start with array or object”
  • Working with Swift: Adopt a Protocol or Pass a Function?
  • Listing Calendar Events with Event Kit and Swift
  • Adding Buttons to the Navigation Bar with Storyboards
  • FIX – Query in Parse Cloud Code Returns Unauthorized Error

Swift Date Formatting

Please enable JavaScript to view the comments powered by Disqus.comments powered by Disqus