cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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 ?



0 Likes
View Entire Topic
former_member182372
Active Contributor
0 Likes

SAPUI5 Explored

dateValue is an Object, try to use that

Former Member
0 Likes

How can i put it via datevalue ?. I have used display format and value format before but not datevalue.

santhu_gowdaz
Active Contributor
0 Likes

see the console in this example,

JS Bin - Collaborative JavaScript Debugging