day of the week in Java -


this question has answer here:

php has built-in function takes data , returns day of week (monday, tuesday, etc.). java have similar function?

import java.util.*;  public class getday {     public static void main(string[] args) {         calendar calendar = new gregoriancalendar();         calendar.set(2011, 1, 9); // 1 = feb  months 0 based remember         system.out.println(calendar.get(calendar.day_of_week));       } } 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -