Get the yesterday's date in context variable
I am trying to retrieve the data from source and I need to pass the yesterday date. Currently I am using %%MM-dd-yyyy%% to get the current date in put context variable. Is there any way can we get the yesterday date in put context variable in process flow?
1
-
Official comment
You can use the getNextorPreviousDate method available within the Mapper Utility Class (Global Methods folder on the lower right hand panel of the data mapper). Here's more detail
Note: If you are using the Saxon parser, you'll need to follow the steps here (for using a negative integer)
Once you have the output value, you can set it in context using the context functions of the data mapper
Post is closed for comments.
Comments
1 comment