Skip to Content
0
Former Member
Aug 05, 2015 at 02:31 PM

Edm.time conversion in UI5

3885 Views

Using a time picker with below code . The Server side of SAP is in EDM.string format as PT13H31M00S .

How is the value to be converted from time picker to required format.


<DateTimeInput
type="Time"

id="datepicker"

placeholder="Enter Time ..."
class="sapUiSmallMarginBottom" />


controller,js

var dtime = this.getView().byId('datepicker').getValue();

alert(dtime); //1:31 PM


Are there any functions to achieve the same ?