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 ?
Request clarification before answering.
I know it's an old thread but just wanted to share alternative solution: you could specify type in binding
<TimePicker value="{path: 'ltime', type: 'sap.ui.model.odata.type.Time'}"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.