I think you’ve misunderstood.
You cannot convert a java.util.Date to any particular timezone. It always holds the number of milliseconds since Jan 1, 1970 GMT.
What your service is doing is converting a date object to a string. And then converting that string back to the same date.
The outDate string representation shows IST because the java.util.Date.toString method uses the default timezone of the JVM to convert the date object to a string.
Let me reiterate: java.util.Date does not carry a timezone and cannot be converted to a specific timezone.
If you need the date/time in a particular timezone, convert the date object to a string using pub.date:formatDate.
Having said all that, perhaps its appropriate to back up and ask: what is it that you need to do with the date exactly? Are you sure you need an MST representation?
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB