Skip to Content
0
Former Member
Sep 17, 2007 at 06:43 AM

Today's date in mm-dd-yyyy format

6807 Views

Hi,

The default date format in my case is yyyy-dd-mm. I want to pass today's date in the format mm-dd-yyyy to a FM in R3. I have gone through many threads but most talk about changing the format from date to string and vice-versa. Others say that we can pass the date in any format and R3 would take care of that. But in my case, these solutions have not helped. I tried converting todays date to string and then string to date in the req format using SimpleDateFormat class but it throws an exception. Would really appreciate if someone could send me a piece of code to address this issue.

Regards,

Prathamesh