Lux Smith
Posts: 0
Joined: Fri Jan 10, 2014 4:52 am

how to map a date to input of type time ?

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

how to map a date to input of type time ?

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

Return to “Issues”