daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. emp.BirthDate: ["Unexpected character encountered while parsing value: {. Path 'BirthDate', line 1, position 14.",…]
  2. 0: "Unexpected character encountered while parsing value: {. Path 'BirthDate', line 1, position 14."
  3. 1: "After parsing a value an unexpected character was encountered: :. Path 'BirthDate', line 1, position 20."
  4.    
  5. <div class="input-group-append">
  6. <button class="btn btn-outline-secondary calendar px-20" (click)="d.toggle()"
  7.          type="button">Calendar</button>
  8. </div>
  9. <input class="form-control"
  10.     [startDate]="{year: 1992, month: 11}"
  11.     placeholder="Birth (yyyy-mm-dd)"
  12.     name="dp"
  13.     [(ngModel)]="newEmployee.BirthDate"
  14.     ngbDatepicker
  15.     #d="ngbDatepicker">
  16. </div>
  17.    
  18. BirthDate: Date; // Angular
  19.  
  20. public DateTime BirthDate { get; set; } // Web api
  21.    
  22. emp:
  23.    BirthDate: {year: 1992, month: 11, day: 11}
  24.    FirstName: "sadsa"
  25.    Gender: "male"
  26.    Lastname: "asdsa"
  27.    Rank: {ID: 6, Name: "Chief Engineer", Employee: null}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top