Base solution for your next web application
Open Closed

date changes #2126


User avatar
0
avanekar02 created

hello

date is captured correctly in theform, when transfered to controller through createinput DTO , the date changes to {1/1/0001 12:00:00 AM}

in the createinputDTO it is defined as

[Required] public virtual DateTime StartDate { get; set; }

in the form createmodal the definition is as

<input class="form-control" type="text" name="StartDate" ng-model="vm.coursedetails.startDate" ng-class="{'edited':vm.coursedetails.startDate}">

can you tell me what i doing incorrect


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you open browser's developer console and check what is sent to server in the network tab for your date field ? You can send a screenshot of it here.

  • User Avatar
    0
    avanekar02 created

    have attached a file called err.jpg

    also datepicker not working

    thanks and appreciate help

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    The date property in your request is string and it's not in the right format, probably that is your problem. If we can fix datepicker problem, this problem will be solved as well.

  • User Avatar
    0
    avanekar02 created

    even without using datepicker the same issue also will you hellp me fix datepicker issue

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Let's continue here. Your screenshot have a javascript error but just last part of it. Can you share that error message ?