problem with Date.

hi, my problem is i am trying to get the system date, display it on the html in the form of list boxs as "dd" "mm" "yy" and save it in data base as a "dd-mm-yy" for the field "date of problem reported". but it is not comming i tried using
Date = currentDate();and then insert stm. but it is not working.

String date1=java.text.DateFormat.getDateInstance().format(new java.util.Date());

dateFormat("dd MMMM YYYY");
dd=req.currentDate();
fmt=DateFormat.getDateInstance(DateFormat.SHORT,DateFormat.SHORT);

but none of these is working.
please help me urgently.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories