Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: is there any DateTime picker control in UI5

$
0
0

Hi Sudipta,

 

Tufale Ashai is right, this question is not for this forum. Should be post to "UI Development Toolkit for HTML5 Developer Center".

 

With refer to your query, we can not directly control the DateTime through DatePicker API provably. For different DateFormat we have to use model and later need to bind that model into DatePicker.

 

DatePick.png

DatePick.png

 

In the above example you can use different pattern like "yy-MM-dd" , "yyyy-MM-dd", "dd/MM/yyyy", "yyyy/MM/dd" etc. But, if you use "dd/MM/yyyy HH:mm:ss" , you will get incorrect result.

 

Now, if your requirement is to get the DateTime format like "dd/MM/yyyy HH:mm:ss" into your application there is a another way to get that.

 

ManageDate.view.js :--

 

DatePick.png

 

CreateDatePicker.js :--

 

DatePick.png

 

ManageDate.controller.js :-

 

DatePick.png

 

index.html :-

 

DatePick.png

 

The above example is just to show a different way to get the result in that DateTime format. Hope this can help you.

 

 

 

Best Regards,

Bibhas Das


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>