|
|
|
|
@ -1088,9 +1088,35 @@ export class WorklistMainComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
console.log(this.arr_hr_req_only);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
returnDateTime(stringDate: string){
|
|
|
|
|
let allDateTime = stringDate.split(' ');
|
|
|
|
|
let time = allDateTime[1].split(':', 2);
|
|
|
|
|
return allDateTime[0] + ' ' + time[0] + ':' + time[1] + ' ' + allDateTime[2];
|
|
|
|
|
let fullDate = this.transform(stringDate);
|
|
|
|
|
return fullDate + ' ' + time[0] + ':' + time[1] + ' ' + allDateTime[2];
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
locale = {
|
|
|
|
|
en: {
|
|
|
|
|
// month_names: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
|
|
|
|
month_names_short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
transform(value: string) {
|
|
|
|
|
let x = new Date(Date.parse(value));
|
|
|
|
|
//return value.toLowerCase();
|
|
|
|
|
let month = this.getMonthNameShort('en',x.getMonth())
|
|
|
|
|
return ""+ x.getDate()+" "+ month +" "+x.getFullYear();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getMonthNameShort(lang,month) {
|
|
|
|
|
lang = lang && (lang in this.locale) ? lang : 'en';
|
|
|
|
|
return this.locale[lang].month_names_short[month];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|