Skip to Content
0
M G
Sep 13, 2006 at 05:04 AM

Searching for a Date

27 Views

Hi

I have a table which has multiple columns including a Date Column (whose format could be either mm/dd/yyyy or dd/mm/yyyy or anything), and a Time Column - any format.

There is a provision for the User to search. The search word would be of type String irrespective of whether he wants to search in the date column or time column or any other column.

My problem is: How do I match the search string with a date/time type?

How do i convert the search string to date and time formats?

I am not allowed to use a SimpleDateFormatter.

What options do I have?

Thanks

oj