Add the date and time SharePoint control in the SharePoint 2013 hosted app.
Just drag and drop the controls on the page from toolbox of the VS2012
The code block will look like as follows :
<SharePoint:DateTimeControl ID="srtDate" ClientIDMode="Static" AutoPostBack="false"
runat="server" ToolTip="Start date for training beginning" />
But when you render this control from your app it does not load on the page, and give below screen error.(500 INTERNAL SERVER ERROR)
Then add the following property of the control : DatePickerFrameUrl="../_layouts/15/iframe.aspx" and add the ralative pat of the app like as I added “../”. After that it will render the control on the page.