Hi Guys,
I am using java.util.Date class in java program to get local time (System time) however it's showing me GMT time.
I was using this code.
JLabel jl = new JLabel();
java.util.Date d = new java.util.Date();
java.text.SimpleDateFormat f =new java.text.SimpleDateFormat("HH:mm:ss");
jl.setText(f.format(d));
Thanks in Advance
I am using java.util.Date class in java program to get local time (System time) however it's showing me GMT time.
I was using this code.
JLabel jl = new JLabel();
java.util.Date d = new java.util.Date();
java.text.SimpleDateFormat f =new java.text.SimpleDateFormat("HH:mm:ss");
jl.setText(f.format(d));
Thanks in Advance