Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Date in InputField/TextView

Hi all,

I was wondering if anyone knows how a date value gets formatted to a string before it's displayed in an InputField or TextView. I believe the conversion uses the current session locale you can obtain by calling WDResourceHandler.getCurrentSessionLocale(). However, using DateFormat.getDateInstance and passing it the locale and any of the predefined styles does not produce the same results. Even using WDResourceHandler.formatDate yields different results. I'm in Australia and for this locale I get dates displayed in format d/MM/yyyy and if I switch to US locale, I get dates in format M/d/yyyy. Is there any means to obtain the pattern and/or SimpleDateFormat (if they use one) they use in Web Dynpro internally. I need this to be able to display dates consistently.



Not what you were looking for? View more on this topic or Ask a question