Skip to Content

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

Can I programmatically set the SimpleType format for date?

We are making localization of some product. There are Calendars on some IViews. By default each calendar shows date with format, which depends on current user language.

We need to change this format by setting the value from our application config to this Calendar element.

Calendar must show format, which was set in configuration. Format must not be depend on current user language.

We can change such format by setting simple type and his format.

But we need to set this format from configuration programmatically.



Former Member
Former Member replied


ISimpleTypeModifiable sim = wdContext.getNodeInfo().getAttribute(<aattributename>).getModifiableSimpleType();

sim.setFormat("yyyy-mm-dd");//you may set the format as per your logic.



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