You can implement this as illustrated in the following code. It is important to note that using inline code in this example serves only simplicity and is not a recommended approach. I suggest you to put your code in code behind files, or even better in separate assemblies.
<%@ Inherits="System.Web.UI.Page" %>
<%@ Register TagPrefix="spuc" Namespace="Microsoft.SharePoint.WebControls"
Assembly="Microsoft.SharePoint, Version=220.127.116.11, Culture=neutral,
<spuc:DateTimeControl runat="server" ID="DTC" />
<script runat="server" language="C#">
void Page_Load(Object sender, EventArgs e)
You can use this technique to create a custom picker-only DateTime field, or one, where you can decide which component (text box, picker or both) is visible.