Page 1 of 1

how to map a date to input of type time ?

Posted: Tue Feb 25, 2014 2:16 am
by Lux Smith

I am retrieving a date field from a database query service and mapping it to an input component of type time, but no time value is being set. I have tried to use different formats but have not been successful.


how to map a date to input of type time ?

Posted: Tue Feb 25, 2014 3:29 am
by Igor

Please try to add ("Add JS") below code to the service mapping date field:

pre
code
var time = /\s(\d\d\:\d\d:\d\d)/gi.exec(value)[1];
return time;
/code
/pre