Question & Answer
Question
How to subtract days from a date field (SCI72627) *|* -A1C04E539AFF3F8B852579180024775B- *|*
Answer
Technote (FAQ)
Question
How to subtract days from a date field (SCI72627)
Answer
An example of subtracting days from a date is as follows:
datetime d;
d = date("%m%d%Y" "10292004");
d = d <<days(-5);
// subtracts 5 days to the date the result is a date of 10/24/2004
| Segment | Product | Component | Platform | Version | Edition |
|---|---|---|---|---|---|
| Commerce | Sterling B2B Integrator | Mapping and Translation | |||
| Commerce | Sterling Gentran:Server for UNIX | Mapping and Translation | |||
| Commerce | Sterling Gentran:Server for Microsoft Windows | Mapping and Translation |
Historical Number
PRI1774
Product Alias/Synonym
Fact
SCI72627
Gentran Integration Suite All Releases
Gentran:Server for Windows All Releases
GENTRAN:Server for Windows NT
All Releases
Gentran:Director for Windows All Releases
Goal
How to subtract days from a date
[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]
Was this topic helpful?
Document Information
Modified date:
12 October 2021
UID
ibm10768007