Need previous day string

Hi

I am using getCurrentDateString.
But I want yesterday’s date in dd-MMM-yy format only.

Is there any inbuilt service for previous day also in webMethods?

I am not aware of a built-in service that provides the functionality you need. You will need to create a Java service. Or, the PSUtilities packages does contain the service PSUtilities.date:incrementDate that will provide this function. Just Google PSUtilities, download it and install it in your development environment.

If you desire to write your own Java service, the attached package should provide you a sample to help you get started. I hope this helps.

Cheers.
SampleCommon.zip (6.63 KB)

2 Likes