Resolve MT940 :61: value date and entry date across year-end
The first six digits of :61: give the value date and the optional next four give the entry month and day. Around year-end these dates can belong to different years, affecting the ledger cutoff and interest reconciliation.
Open this sample in Air-Gapped ConverterWorked bank sample
Synthetic bank data for local reconciliation.
:20:REPORT-1
:25:EUR-OPERATING
:28C:007/1
:60F:C261231EUR100,00
:61:2612310102C25,00NTRFYEAR-END//BK-0102
:86:December value, January booking
:62F:C270102EUR125,00Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| :61: positions 1–6 | Value date | YYMMDD | Using value date puts the posting in December. |
| Optional next four | Entry date without year | MMDD | Copying the value year moves the booking back a year. |
Root cause and ERP fix
- The ERP uses one date for interest and posting. Stage both fields and assign their roles explicitly.
- A January booking inherited the December year. Resolve it against the statement period.
- A missing entry date shifted the amount parser. Detect the optional digits before reading the mark.
Inspect with the MIT parser
Save the sample as mt940-value-date-entry-date.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-value-date-entry-date.sta.
import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const report = inspect(text, { transactions: true });
const rows = report.transactions;
const { valueDate, bookingDate } = rows[0];
console.log(valueDate, bookingDate, report.header.closingDate);Open this sample in Air-Gapped ConverterExport a multi-sheet Excel workbook with balance checks and batch reconciliation on your device. No Node installation or cloud upload is required.
npm package · SDK source · Format reference