This discussion is archived
5 Replies Latest reply: Apr 18, 2013 9:34 AM by shakir.gusaroff RSS

date value 2013-04-16 00:00:00 fetch from oracle, how convert to 16.04.2013

tanvir ahmed Newbie
Currently Being Moderated
Sir,

I fetch date from oracle and the format is 2013-04-16 00:00:00.

The code is :

final String vId[] = new String[1000];
try{
stm = db.con.createStatement();
rs = stm.executeQuery("select * from voucher_main,voucher_details where v_id = v_d_id order by v_id desc");
int a = 0;
while(rs.next()) {
vId[a] = rs.getString("v_id");
a++; }
}catch(SQLException sqlException){         
}

invIdCombo.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>(){
public void changed(ObservableValue ov,Number value, Number new_value){                           
invNo.setText(vId[new_value.intValue()]);
}

Now to how to show this 2013-04-16 00:00:00 date as 16.04.2013 in javaFX TextField .

Regards

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points