Hi
Does anybody have any specific examples of using DNN 6/knockoutjs/entityframework/sql server and
dates? Nothing seems to be coming up trumps at all :(
Specifically I enter a date of birth in an ASP.NET webform like
22/05/1970 (or even better use a calender control or something), and this posts the date via javascript (via knockoutJS):
Right now I initialise like this:
DOB: ko.observable(new Date())
or maybe even like this:
DOB: ko.observable()
This is how my postData is handled:
DOB: viewModel.DOB()
And this is my form which I type in:
<div class="dnnFormItem">
<dnn:label id="plDOB" runat="server" controlName="txtDOB"></dnn:label> <asp:TextBox id="txtDOB" runat="server" data-bind="date: DOB"></asp:TextBox>
</div>
Ultimately this goes into a SQL Server datetime field!
So far postings on other forums have been far too much for my tiny brain to handle, so I'm posting here as an act of despiration! I seem to have no problem with other value types.
Has anybody actually done this within DNN? Could you share a full example?
Cheers
Alex