//DateQuestionView Component Constructor
function DateQuestionView(question, content) {

	var self = Ti.UI.createPicker({
		type : Ti.UI.PICKER_TYPE_DATE,
		value : new Date(),
		color : '#336699',
		right : 5,
		left : 5,
	});
	self.addEventListener('change', function(e) {
		this.value = e.value;
	});
	self.getValue = function() {
		var val = this.value.toISOString();
		return val.substr(0, val.indexOf('T')).replace(/-/g, '/');
	};
	if (content) self.setValue(new Date(content));

	return self;
}

module.exports = DateQuestionView;

//DateQuestionView Component Constructor
function DateQuestionView(question, content) {

	var self = Ti.UI.createPicker({
		type : Ti.UI.PICKER_TYPE_DATE,
		value : content ? new Date(content) : new Date(),
		color : '#336699',
		right : 5,
		left : 5,
	});
	self.addEventListener('change', function(e) {
		this.value = e.value;
	});
	self.getValue = function() {
		var val = self.value;
		return val.getFullYear() + '/' + (val.getMonth() + 1) + '/' + val.getDate()
	};

	return self;
}

module.exports = DateQuestionView;

Fix the date-picker edit flow in Android.
Fix the date-picker edit flow in Android.

Months/days were randomly getting incremented/decremented. Manually
create the date instead of using `toISOString`
