I need to create a custom stamp for the day of the week, which is to be appended to the filename.
Suppose If it is sunday , the value of the stamp must be “1”,
same way if its monday the value of the stamp must be “2”.
Is this possible in MQFTE using Ant Script???
You can’t do this directly with standard TStamp task. That allows you to format your timestamp using patterns defined in SimpleDateFormat, and there is no format symbol for day of week as a number.
I guess you could write a custom TStamp task.
However, this works.
Create a set of properties files, named using 3-letter day name:
In each file, define a single property for the corresponding day number, e.g.
In your build script, first get a property matching today’s day name, then load the corresponding properties file, then you can reference the day.num property.
Output today (Thursday) is