Hey All,
i'm developing a website using
Java..
for a specific page i want to limit access to that page by TIME of the day..
simply i want to give a error massgae after 6pm if user try to access that page..
so i want to check isCurrentTimeBefore 6 pm...
code i tried is...
java.sql.Time time = new Time(System.currentTimeMillis());
System.out.println("\nisBefore6() currentTimeMillis\n"+time);
java.sql.Time time0 = new Time(06,00,00);
System.out.println("\ntime0=\n"+time0.getTime());
System.out.println("\ncompare "+time2.before(time));
but it is NOT working for my requirement..
Any help will be appriciated.
Thanks in advance.