Dear Karthik,
I need to use SAP.M components as I am developing for mobile application. So I have to use DateTimeInput components and I need to use XML code because SAPUI5 wave2 apps will come in XML view and SAP also recommends the XML view, not Java Script.
Regards,
AS