Hi All,
Have a jsp variable returning a string "dateFrom" containing "06/10/2004 06:00:01 AM". When I put it to the timeStamp variable, the time is dropped. The date appears in the timeStamp okay. How would I get the time into the timeStamp variable.
getDateFrom - String
custReport.setDateFrom - timeStamp
Any suggestions or comments would be most appreciated.
TIA,
Tim
Have a jsp variable returning a string "dateFrom" containing "06/10/2004 06:00:01 AM". When I put it to the timeStamp variable, the time is dropped. The date appears in the timeStamp okay. How would I get the time into the timeStamp variable.
Code:
if(infoReport.getDateFrom() != null) {
if(!infoReport.getDateFrom().equals("")){
[b]
custReport.setDateFrom(infoReport.getDateFrom()));
[/b]
}
}
getDateFrom - String
custReport.setDateFrom - timeStamp
Any suggestions or comments would be most appreciated.
TIA,
Tim