1

I'm trying to get this SQL datetime (yyyy-MM-ddTHH:mm:ssZ) to be somewhat readable. (perhaps yyyy-MM-dd HH:mm)

Now it displays like this:

2011-10-28T11:03:52Z

I'm really confused on how to display it like this

2011-10-28 11:03

I got this html snippet.

<tbody bgcolor="#eef2f7">
 <!-- ko foreach: $data -->
  <tr>
     <td class="messageCell" style="text-align:right;">
         <label data-bind="text: $data.updated_time"></label>
     </td>
  </tr>
 <!-- /ko -->
</tbody>

I got this javascript

GET('<!--%root%-->/API/item,
        function (items, textStatus, request) {
            var invoiceeModel =
                contracts.map(function (data) {
                    return {
                        updated_time: ko.observable(data.updated_time)
                    };
        });

Pointers, tips and code-snippets are warmly welcome!

Jeroen
  • 60,696
  • 40
  • 206
  • 339
Awots
  • 75
  • 8

0 Answers0