Format one or two dates as an EDI file date string¶
Format a start date, and optional end date, into an EDI file date string, triggered when caller names or stamps an interchange file*.
| Field | Value |
|---|---|
| Operation ID | OP-012 |
| Trigger | Caller names or stamps an interchange file* |
| Inputs | startDate, optional endDate |
| Outputs | String (yyyymmdd or yyyymmdd-yyyymmdd) |
| Primary components | DateMaker.EdiFileDateString(DateTime startDate, DateTime? endDate) |
| Entry point | Common/SAIF.Common/Classes/DateMaker.cs |
Steps¶
- Format
startDatewith theDateFormatconstant"yyyyMMdd". (BR-030) - If
endDateis non-null, appendDateSeperator('-') plus the end date formatted the same way. (BR-030) - Return the assembled string.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["Caller names or stamps<br>an interchange file"]) --> S1["Format startDate with<br>'yyyyMMdd' mask"]
S1 --> C1{"endDate is<br>non-null?"}
C1 -->|Yes| S2["Append '-' separator and<br>formatted endDate"]
C1 -->|No| S3["Keep start-date-only string"]
S2 --> End([Return assembled string])
S3 --> End
Related documentation¶
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.
Sources¶
Common/SAIF.Common/Classes/DateMaker.cs