cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with date format using date picker

Former Member
0 Kudos

In my application I provide to user ability to change date format. When using "MMM dd yyyy" format, the date picker paste to the inputbox something like "1111 07 2008" instead of "Nov 07 2008".

To set the date format I use the following code:

wdContext.nodeDateNode().getNodeInfo().getAttribute("date").getModifiableSimpleType().setFormat("MMM dd yyyy");

I know that is known bug of date picker. But there should be other way to implement this functionality. Isn't it?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I try to use SympleType but I have the same result.

It seems the problem is in UI control. I can't change date format using SimpleDateFormat because when user select date the date picker paste it through to inputbox and all this actions perform on client side.

former_member192434
Active Contributor
0 Kudos

Hi

Check this link

/message/6430993#6430993 [original link is broken]

For more details

http://www.sapdb.org/7.4/htmhelp/48/0d8018b4f211d2a97100a0c9449261/frameset.htm

Thanks

Former Member
0 Kudos

Hi,

Try by creating a simple data type for data and in the representiaon part give the format which you want.

Thanks & Regards

Padma N