cancel
Showing results for 
Search instead for 
Did you mean: 

Date format in table filter

Former Member
0 Kudos

Hi,

I am facing one problem regarding date format in table filter.

Filter for column with date field is working only if filter value is entered in the format MM/dd/yyyy. Its not working for any other format like dd.MM.yyyy.

Anyone have faced this problem earlier?

What can be done so as to convert entered date into required format?

Regards,

Apurva

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Modified Tablefilter.java file.

Problem Solved.

Thank everyone,

Apurva

Former Member
0 Kudos

Apurva,

Please let me know how did you resolve table filter issue. In our case, date format is MM/dd/yyyy.

I modified following changes of the line in the method generateObject,

SimpleDateFormat template = new SimpleDateFormat("MM-DD-YYYY");

and I tried with "MM-dd-yyyy".

Please note I have created SimpleType with representation as MM-dd-yyyy and have associated same thing to

-Source node

- Target node as well.

Please guide

Regards,

Ganga

Former Member
0 Kudos

You may use SimpleDateFormat for e.g,

SimpleDateFormat template = new SimpleDateFormat("MM/dd/yyyy");

template.format("date in other format");

Former Member
0 Kudos

Hi Apurva,

Check existing thread in which this problem is resolved:

Regards,

Anagha

Former Member
0 Kudos

Hi Anagha,

Thanks for reply.

But I am facing problem in case of filter and not sorter.

Regards,

Apurva

Former Member
0 Kudos

HI,

Create a simple type of Date and in the representaion part specify the format which you want as dd/MM/YYYY or as you wish and map this type to the type of the attribute in the context

Regards

Padma N