cancel
Showing results for 
Search instead for 
Did you mean: 

Date must be truncated to month and year

Former Member
0 Kudos

Hi,

I have a date field

after the user gives F4 help I need to truncate the date , i.e I want only month and year

For Ex.

If the user selects as 12/12/2009

I must display as 12/2009

How can It be done?

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You won't be able to do this with an input field bound to a context attribute of Date data type. You would have to process the data on the server and move the field to a different context attribute of type string. You would have to parse the internal format of the date (YYYYMMDD) and rebuild the string with just the month and year.

Former Member
0 Kudos

Hi Thomas....

Thanks for the reply......

I am new to Web Dynpro......

could you help me with steps.....

Regards

Former Member
0 Kudos

Hi,

go thru this threads

it might provide you some guidance