ghatfan99
10 Aug 2010, 3:51 AM
hello every one:
my problem is that i want to get the time in this forma "hh:mm:ss" from a date to put it in:
TextFieldMask fTime = new TextFieldMask(
"99:99:99");
fTime.setFieldLabel("Time, hh:mm:ss");
right.add(fTime, formData);
i tried with:
Date currentDate = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss");
com.google.gwt.user.client.Window.alert("time: " + sdf.format(currentDate));
but i have a problem with the import java.text
thank's
my problem is that i want to get the time in this forma "hh:mm:ss" from a date to put it in:
TextFieldMask fTime = new TextFieldMask(
"99:99:99");
fTime.setFieldLabel("Time, hh:mm:ss");
right.add(fTime, formData);
i tried with:
Date currentDate = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss");
com.google.gwt.user.client.Window.alert("time: " + sdf.format(currentDate));
but i have a problem with the import java.text
thank's