I'm currently using the script below:
<script type="text/javascript">
$(document).ready(function () {
$("#<%=txtEnd.ClientID %>").dynDateTime({
showsTime: true,
ifFormat: "%Y/%m/%d %H:%M",
daFormat: "%l;%M %p, %e %m, %Y",
align: "BR",
electric: false,
singleClick: false,
displayArea: ".siblings('.dtcDisplayArea')",
button: ".next()"
});
</script>
Even though I can access txtEnd.Text, it's empty. How can I retrieve the value that is inserted into the box?
Code behind
DateTime start = Convert.ToDateTime(txtStart.Text);