Here is my code..
$('<div />').addblock(
	title:'Text Block', 
	data:{	'id',
			"labelDate": function(models.starttime){
				var value = models.starttime;
				var d = new Date();
				value = d.toLocaleDateString();	
				return value;
I'm getting model.thetimestamp from an ajax call, however I am not able to format that to date object. Im trying to do that using an anonymous function which is now in the comments. How do I format the date before showing it in the block?