Currently, I am utilizing the ASP.Net ajax calendar extender control in order to showcase both date and time.
<asp:TextBox ID="tbxReceivedDate" CssClass="selectstyle" runat="server" MaxLength="100" Width="200" onblur="parseStringtoDateTime();"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" TargetControlID="tbxReceivedDate" Format="ddd MM/dd/yyyy hh:mm:ss tt" runat="server"></cc1:CalendarExtender>
As of now, this textbox displays datetime as "Tue 08/18/2015 4:44:40 PM", but my goal is to convert it to "08/18/2015 4:44:40 PM" using JavaScript.
The code provided below only captures the date part, however, I also require the time section.
<script type="text/javascript">
function parseStringtoDateTime() {
var date = $find("behaviorID").get_selectedDate();
}
</script>
Could you guide me on achieving this desired outcome?