Search This Blog

Friday, October 7, 2016

Hàm - Lấy thứ từ ngày

private String GetDay_Of_Week(Date date)
{
Calendar cal = Calendar.getInstance();
cal.setTime(date);
int intDayOfWeek=cal.get(Calendar.DAY_OF_WEEK);
return weekdays[intDayOfWeek-1];

}

No comments:

Post a Comment