Skip to Content
avatar image
Former Member

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.

Thanks,

Maksim.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 16, 2008 at 02:06 PM

    HI,

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

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

    Regards,

    Murtuza

    Add comment
    10|10000 characters needed characters exceeded