如何在DELPHI ANDROID检查周的第一天是周一还是周日?

时间:2016-11-03 10:58:24

标签: android date delphi delphi-10.1-berlin

有没有一种简单的方法可以检查ANDROID设备上DELPHI中的周一或周日的第一天是星期一还是星期天?

2 个答案:

答案 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)