cancel
Showing results for 
Search instead for 
Did you mean: 

Date formatting based on country

former_member531036
Participant
0 Kudos

Hi Gurus,

I'm trying to format a date based on country. I'm passing in the country and language in the DOCPARAMS parameter. The dates that need formatting are being passed to the form in a structure. I have the field type on the form set as date/time on the Field tab under Object. Under the Binding tab I have the data format set as Date. Under Patterns, I've tried the date.default{} setting and also leaving it blank. Nothing I've done seems to make any difference. Has anyone been successful doing this and if so can you give me some guidance on what I may be doing wrong?

Thanks!

Julie

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Julie,

I tried this way but wasn't successful. So i wrote a function module in which i took the sy-datum (for example as input). I splitted the dd mm and yyyy part out of it and stored in local variable. Then I took the language and passed it into t247 table and got the month names in whatever language i desired. Then i concatenated my dd mm (which i got from t247 table) and yyyy in the format which i wanted, (like dd mmm, yyyy). Then i passed this string to the exporting parameter of my function module which is also string type.

I made my interface of the form and then defined an importing parameter of type string ( to contain the date string from the function module).

Then i binded this string parameter in my form with the date text field or floating field. This way i was able to do it.

Let me know if you need more help on this.

Rgds,

Nitin.

former_member531036
Participant
0 Kudos

HI Nitin,

Thank you for the reply. I've gotten around the requirement by creating some custom code. I have some other requirements coming up that is going to need this same logic, so I was hoping there was a way to do this using the supplied Adobe functionality.

Julie