Skip to Content
0
Former Member
Aug 10, 2006 at 06:43 AM

Time field problem

24 Views

Hi

I have a strange problem regarding the time field i have value attribute of type time when i enter the value in input box bound to it. and in program when i use that time to convert it into string it automatically gets different value may be one hour before the entered value i am not changing the value any where so how its happening and how can we resolve the problem

bellow is the code i have used

SimpleDateFormat datePickerTime =	new SimpleDateFormat("HH:mm:ss");
SimpleDateFormat abapTime = new SimpleDateFormat("HHmmss");			
try
{
	Date frmTime = datePickerTime.parse(wdContext.currentContextElement().getFromTimeValue().toString());
	String frmTimeText = abapTime.format(frmTime);
	wdContext.currentParametersElement().setFromTime(frmTimeText);
}
catch(Exception e)
{
	wdContext.currentParametersElement().setFromTime("");
}

Thanks

Ninad

Message was edited by: Ninad