Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8351797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:45:20+00:00 2026-06-09T08:45:20+00:00

In my application i have 2 field, 1 is date and another is recc(is

  • 0

In my application i have 2 field, 1 is date and another is recc(is an integer) in database table.

Now i will explain my requirement:

Consider suppose user enters today’s date(26-07-2012) and recc as 10.It means that starting from today’s date to that +10 date.I got that 10th date from today’s date.But what i want is 10th day from today’s date means it will surely go to next month also (26-07-2012—-5-08-2012),but i have to know the count of date which falls in this particular month,(i.e)between 26-07-2012—-5-08-2012 how many days it will fall within this month.I think i have explained my problem clearly,if not i am ready to give more explanation.Thanks in advance.

Date value:

 EditText date=(EditText)findViewById(R.id.startdateexp);       
             String startdate=date.getText().toString();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:45:23+00:00Added an answer on June 9, 2026 at 8:45 am

    you can do this by following way:
    1. Get date from Database.

    Now get day of month from the date by following method:

    DateFormat iso8601Format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        try {
        date = iso8601Format.parse(dateTime);
        } catch (ParseException e) {
        Log.e(TAG, "Parsing ISO8601 datetime failed", e);
        }
        Calendar cal=Calendar.getInstance();
        cal.setTime(date);
        int currentDay= cal.get(Calendar.DAY_OF_MONTH);
    

    calculate Last day of month by:

        int lastDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that used another php cms system, which I am now
Scenario: My PHP application will always use the date field DD-MM-YYYY. MySQL obviously always
I have a itemlist in my mobile application with search field and date field.
I have a field in my application where the user has to type the
Hi i am doing internal mail service application , i have the field called
I have some text area field in my grails application. I got the following
I have a massive viewstate hidden field that is causing my application to be
In my hello world application, i have a button and a text field set
I am using MySQL database and I have a datetime field inside it. In
i'm Creating an application that will be working off a User table, the user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.