cancel
Showing results for 
Search instead for 
Did you mean: 

Can I programmatically set the SimpleType format for date?

Former Member
0 Kudos

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.

Thanks,

Maksim.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

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

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

Regards,

Murtuza

Answers (0)