Xinonix
HOME
HOME
BLOG
CONTACT
Follow us
Facebook
Twitter
[PublishedDate]
[title.$t]
[content.$t]
Posted by:
[AuthorName]
at [PublishedTime]
{{ ID: function() { return this.id.$t.substring(this.id.$t.length - 19); }, SafeDate: function(dateString) { try { // Parse the date var sdate = new Date(dateString); // Check the date validity if (isNaN(sdate.getTime()) == true) return new Date(); // Return the date return sdate; } catch (err) { } return new Date(); }, PublishedDate: function() { var dt = this.SafeDate(this.published.$t); return dt.format('fullDate'); }, PublishedTime: function() { var dt = this.SafeDate(this.published.$t); return dt.format('mediumTime'); }, AuthorName: function() { return this.author[0].name.$t; }, AuthorEmail: function() { return this.author[0].email.$t; } }}