-1

Possible Duplicate:
how to convert current date into string in java?

I need to convert a DAte to String to user the method contains after Can you help please !

Community
  • 1
  • 1
Anass
  • 6,132
  • 6
  • 27
  • 35

2 Answers2

1

take a look at java.text.SimpleDateFormat

example: How to convert current date into string in java?

Community
  • 1
  • 1
aav
  • 2,514
  • 1
  • 19
  • 27
0

You give little details about your situation, but it sounds like maybe you should use Calendar, rather than String.contains

Calendar API