javascript - Using Value of a Date Picker/Time Picker -


i got date , time picker in code:

    <datepicker id="datepicker" placeholder="{i18n>enterdate}" width="15%">             <layoutdata>                 <flexitemdata growfactor="1" />             </layoutdata>         </datepicker>         <timepicker id="timepicker" placeholder="{i18n>entertime}" width="15%">             <layoutdata>                 <flexitemdata growfactor="0" />             </layoutdata>         </timepicker> 

from api reference not able understand how can use values user types in.... 

what did this:

var abc = new sap.m.datepicker(); var date = abc.getvaluedate().byid("datepicker"); 

but seems not work.... guess i'm doing horribly wrong here

var abc = this.byid("datepicker"); // 'this' - controller instance var date = abc.getdatevalue(); 

first, instance of date picker - loaded in xml view, , obtain date entered.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -