sample-proxies/twitter-oembed/apiproxy/resources/jsc/search-oembed.js
// Convert tweet created_at to ISO-8601
Convert tweet created_at to ISO-8601
Convert tweet created_at to ISO - 8601
function createdAtISO(created_at) {
  function pad(n) {
    return n < 10 ? '0'+n : n;
  }
  var d = new Date(Date.parse(created_at));
  return d.getUTCFullYear()+'-' +
    pad(d.getUTCMonth()+1)+'-' +
    pad(d.getUTCDate())+'T' +
    pad(d.getUTCHours())+':' +
    pad(d.getUTCMinutes())+':' +
    pad(d.getUTCSeconds())+'Z';
}
function createdAtISO ( created_at ) { function pad ( n ) { return n < 10 ? '0' + n : n ; } var d = new Date ( Date . parse ( created_at ) ) ; return d . getUTCFullYear ( ) + '-' + pad ( d . getUTCMonth ( ) + 1 ) + '-' + pad ( d . getUTCDate ( ) ) + 'T' + pad ( d . getUTCHours ( ) ) + ':' + pad ( d . getUTCMinutes ( ) ) + ':' + pad ( d . getUTCSeconds ( ) ) + 'Z' ; }
Convert tweet created_at to ISO-8601
Convert tweet created_at to ISO - 8601