title: How to convert string to number or date in angularjs expression
body: <p>I am using angularjs to make a pagination type of thing, say I have a 2D array and I am displaying the values from it. Its working fine but I also want to be able to edit thoes values so I used ng-hide in input tag and its working fine but the problem is that if the type of input is number or date and the type of my array values is string then the values are not displayed in the editable input boxes.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;table class="table table-hover"&gt;
              &lt;thead&gt;
                  &lt;tr class="active"&gt;
                      &lt;th class="id"&gt;Label&lt;/th&gt;
                      &lt;th class="name"&gt;Field&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
  
              &lt;tbody&gt;
                  &lt;tr ng-repeat="item in fieldsonPage[currentPage]" class="active"&gt;
                      &lt;td&gt;{{item}}&lt;/td&gt;
                      &lt;td&gt;
                          &lt;div ng-repeat="prop in pagedItems[currentPage]" class="active"&gt;
                                  &lt;div ng-hide="ngEditName" ng-click="ngEditName=!ngEditName"&gt;
                                      {{prop[item]}}
                                  &lt;/div&gt;
                                  &lt;div ng-show="ngEditName"&gt;                                                    
                                      &lt;input type="{{fieldsType[item]}}" ng-hide="{{fieldsType[item] == 'textarea' ? 'true' : 'false'}}" ng-model="prop[item]" class="form-control"/&gt;
                                      &lt;textarea rows="4" cols="50" ng-hide="{{fieldsType[item] == 'textarea' ? 'false' : 'true'}}" class="form-control" ng-model="prop[item]" /&gt;&lt;div ng-click="ngEditName=!ngEditName"&gt;Close&lt;/div&gt; 
                                  &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
  </code></pre>
  
  <p>The type is decided on the kind of data associated which is working but the binding is not proper so i need a way to <strong>convert string to number or date in the expression in html page</strong> itself. Any clue!!
  <img src="https://i.stack.imgur.com/1cx0r.jpg" alt="enter image description here"></p>