function formatExtTime(vExtTime, vFormatText) {
if (vFormatText == undefined || vFormatText == '') {
vFormatText = 'yyyy-MM-dd';
}
var vTime = new Date(vExtTime);
var v_Month = (vTime.getMonth() + 1);
var v_FullMonth = parseInt(v_Month) < 10 ? ("0" + v_Month) : v_Month;
return vFormatText.replace('yyyy', vTime.getFullYear())
.replace('MM', v_FullMonth)
.replace('M', v_Month)
.replace('dd', vTime.getDate());
}