What you get back out of the view depends on what the view column contains ... if you have the date converted to text, (ie via an @text, it'll be text), other wise it may be a NotesDateTime, possibly a simple date .... either way, you need to get it to a NotesDate Time object, so...
// If it's a string then...
var due:NotesDateTime = session.createDateTime("01/01/2001 00:00:00");
// If its a javascript Date object then...
var due:NotesDateTime = session.createDateTime(notesentryvar.getColumnValue(X));
once its a NotesDateTimeObject, you can format the date like this:
I18n.toString(due.toJavaDate(), "M/d/yyyy");