173
rated 0 times
[
175]
[
2]
/ answers: 1 / hits: 7847
/ 11 Years ago, mon, january 20, 2014, 12:00:00
How do I covert JavaScript string 5:00 PM to DateTime or TimeSpan when it get send to the MVC controller. I am using
bootstrap-timepicker
// usage
<script type=text/javascript>
$('#timepicker1').timepicker();
</script>
Javascript payload
{
Skip: 0
Status: []
Take: 15
DueTime: 1:00 PM // keep in mind that this is a string
}
Server Object would be something like
class TimeSheet
{
public TimeSpan DueTime;
}
More From » c#