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

  • Home
  • SEARCH
  • 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 6160371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:17:21+00:00 2026-05-23T21:17:21+00:00

The field is like a DateField but instead its value is just the month

  • 0

The field is like a DateField but instead its value is just the month and the year like ’05/2011′ : how to create such a field ?

  • 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-05-23T21:17:22+00:00Added an answer on May 23, 2026 at 9:17 pm

    In java-me, you can use the java.util.Calendar package for formatting the date.

    Here is snippet from this tutorial on displaying the date and time in Java ME:

    private void outputDateUsingCalendar(Date date) {
       Calendar calendar = Calendar.getInstance();
       calendar.setTime(date);
       StringBuffer sb = new StringBuffer();
    
       int day = calendar.get(Calendar.DAY_OF_MONTH);
       sb.append(numberToString(day));
       sb.append("-");
       int month = calendar.get(Calendar.MONTH) + 1;
       sb.append(numberToString(month));
       sb.append("-");
       sb.append(calendar.get(Calendar.YEAR));
    
       StringItem item = new StringItem("Using Calendar", sb.toString());
       mainForm.append(item);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Specifically, I have a model that has a field like this pub_date = models.DateField(date
I have Database with date field. I see the time like: 1900-01-01 13:38:00.000 How
I have an array that I would like to sort using a date field
I have field like a_b_c_d I want as the output a b c_d, this
If I have a boolean field like: private static final boolean DEBUG = false;
I have a text input field like text box or text area. I want
I have a class that contains a boolean field like this one: public class
I have a table it includes 3 foreign key field like that: My Table:
I want to sort my lucene(.net) search results by a date field (date1), but
I have a datefield in a form like this: { xtype:'datefield', name:'order[date]', id:'dato', format:'d-m-Y',

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.