05-22-2013 05:40 AM
05-22-2013 06:40 AM - edited 05-22-2013 06:41 AM
"can u provide the link to API"
I am surprised by this question because:
1) How have you been researching your code, if you don't have the API documentation?
2) If you have not got that link, then why did you say that Day 5 was Friday? Was that just a guess?
I recommend that you review all the pages you can get to from here:
You will notice in the 'header' area, there is link to the API Reference:
click on that and you can find the documentation for the Calendar class;
click on that, you will find references to the static values it uses, including DAY_OF_WEEK;
click on one of these, you will get a little more detail, including a link to the Constant Field Values;
click on the Constant FIeld Values link to find out what these actually are.
I hope we have now solved this Thread.
05-22-2013 06:44 AM
ok , today is 22/05/2013, so June is 5th month so to find todays day we have to write 04
and i got ----DAY_OF_WEEK-------4 in console and today is wednesday.can plz can u provide me the link to the API which have contants values for days
Calendar rightNow2 = Calendar.getInstance();