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 8249633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:36:44+00:00 2026-06-07T23:36:44+00:00

Hello I am new to Android. Can anybody help me get date like 2012-07-15

  • 0

Hello I am new to Android. Can anybody help me get date like 2012-07-15 from 15 July. I know that is done by using DateFormater but I don’t know how it’s working? Please help me to find this.

  • 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-07T23:36:45+00:00Added an answer on June 7, 2026 at 11:36 pm

    ii thing use this by using subString() method

       String TimeZOne = "2012-07-08" 
        String Year = TimeZOne.substring(0,4); 
        String month = TimeZOne.substring(4,7); 
        String date = TimeZOne.substring(8,10);
    
        int Month_1 = Integer.parseInt(month);
        String month_String = find_Month(date_1);//call method
    
        String date_Fromate = date+" "+month_String ; 
    

    //declare method

    public String Date_String(int i){
    
    switch (i) 
                    {
                        case (i==1): 
                        {
                            month = "JAN";
                            break;
                        }
                        case (i==2): 
                        {
                            month = "FEB";
                            break;
                        }
                        case (i==3): 
                        {
                            month = "MAR";
                            break;
                        }
                        case (i==4): 
                        {
                            month = "APR";
                            break;
                        }
                        case (i==5): 
                        {
                            month = "MAY";
                            break;
                        }
                        case (i==6): 
                        {
                            month = "JUN";
                            break;
                        }
                        case (i==7): 
                        {
                            month = "JUL";
                            break;
                        }
                        case (i==8): 
                        {
                            month = "AUG";
                            break;
                        }
                        case (i==9): 
                        {
                            month = "SEP";
                            break;
                        }
                        case (i==10): 
                        {
                            month = "OCT";
                            break;
                        }
                        case (i==11): 
                        {
                            month = "NOV";
                            break;
                        }
                        case (i==12): 
                        {
                            month = "DEC";
                            break;
                        }
                    }
             return month;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i am new in android. Can anybody help me to find how i
Hello i am new in android. Can anybody help me to maintain aspect ratio
I'm new to android. Can anyone help me how to display images from the
Relatively new to Java and Android programming can anybody help as to why I'm
Hello I'm new to android programming. I would like to ask how can I
Hello i am new in android and i really need help with something. I
Hello i'm a new coder to android. I have a program that Plays Pauses
hello i am new in android devlopment i want to know how to upload
How can I start a new application on Android? I have done a new
Hello I am new for the android,so please let me know where I am

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.