Skip to Content

Date formatting based on country

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2012 at 05:31 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.