IBM Support

How to subtract days from a date field (SCI72627) *|* -A1C04E539AFF3F8B852579180024775B- *|*

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

Cross reference information
SegmentProductComponentPlatformVersionEdition
CommerceSterling B2B IntegratorMapping and Translation
CommerceSterling Gentran:Server for UNIXMapping and Translation
CommerceSterling Gentran:Server for Microsoft WindowsMapping 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":""}}]

Document Information

Modified date:
12 October 2021

UID

ibm10768007