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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:50:11+00:00 2026-05-13T14:50:11+00:00

Is it possible to change default formatting of Date object in JSP pages? Now

  • 0

Is it possible to change default formatting of Date object in JSP pages? Now I have some kind of formatting and I would like to change formatting without using fmt-tags, because that would mean I would have to type that formatting to all pages and there are many!

  • 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-13T14:50:11+00:00Added an answer on May 13, 2026 at 2:50 pm

    without using fmt-tags

    Best is to create your own custom taglib which does exactly the same as JSTL fmt:formatDate.

    But why would you want to reinvent the wheel? Is it the “much” effort of replacing the code in JSP? Well, that’s just your job 🙂 It’s basically as simple as following:

    1. Drop jstl-1.2.jar in /WEB-INF/lib.
    2. Declare fmt taglib in top of your JSP:

      <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
      
    3. Use fmt:formatDate on any bean’s java.util.Date property.

      <fmt:formatDate value="${bean.date}" type="date" dateStyle="short" />
      

      Above example will print today’s date as 10/01/25 for English locales and for example 25.01.10 for German locales. No worries anymore! 🙂

    You would be almost already finished in the time you spent asking the question and waiting the answer 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to change default EventKitUI style? I'd like to have different background
I'd like to know if it is possible to change some default parameters of
Is it possible to change the default text (something like looking for other iPhones
Is it possible to change the default behavior of form elements in CakePHP without
Is it possible to change the default field separator from comma to to some
Is it possible to change default system's 'hand' cursor with some 'my_cursor.png file in
Is it possible to change the default black like color of the UIPopOver to
Possible Duplicate: C# formatting a MessageBox how to change the size of windows default
Possible Duplicate: Android: change default Home Application I want to create a program like
Is it possible to change the default background colour of black in Silverlight Encoder

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.