有没有一种简单的方法可以检查ANDROID设备上DELPHI中的周一或周日的第一天是星期一还是星期天?
答案 0 :(得分:2)
只需使用此代码:
window.location.href = $('.banan').attr('href');
答案 1 :(得分:0)
GregorianCalendar tepCal = (GregorianCalendar) GregorianCalendar.getInstance();
Date todayDate = new Date();
tepCal.setTime(todayDate);
tepCal.set(Calendar.YEAR, 2016);
tepCal.set(Calendar.MONTH, 10);// November
tepCal.set(Calendar.DAY_OF_MONTH, 3);
dayOfweek = tepCal.get(Calendar.DAY_OF_WEEK) - 1; //It returns 4 (Calendar.DAY_OF_WEEK returns 1 for sunday)