Apparently, I\'m missing something fundamental. I\'m having a problem with formatting the value of a jspinner. I\'ve tried a couple different ways and keep receiving an error, d
I suspect the problem is this:
dateFrom.getValue().toString()
I suspect dateFrom.getValue()
is just returning a Date
- which of course doesn't have any associated format. Instead of parsing that, you should just cast it:
Date from = (Date) dateFrom.getValue();
I could be wrong, of course... but that would be my first thought.