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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:20:19+00:00 2026-06-14T11:20:19+00:00

How to get the pattern of the given date object I am getting one

  • 0

How to get the pattern of the given date object

I am getting one Date object as a parameter in my method and I want to know the pattern of the date to convert it into user selected timezone.

  • 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-14T11:20:21+00:00Added an answer on June 14, 2026 at 11:20 am

    You’ve misunderstood what a Date means. It’s just a number of milliseconds since the Unix epoch. It has no concept of time zone, calendar or text format. If it helps, think of it as being a bit like int – an int isn’t in hex, decimal or binary – it’s just a number within a certain range. If you parse “1a” as hex, that gives an indistinguishable result from parsing “26” as decimal. The same goes for Date.

    Of course, this was already explained in comments to some extent, but your reply of:

    ok, but while i getting the date object which already set a format i want to know that format.

    … suggests you didn’t really understood it. The concept of “which already set a format” makes no sense in the context of a Date.

    If you need a particular format to be applied, you should pass the DateFormat along as well as the Date.

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

Sidebar

Related Questions

Is the Decorator Pattern mainly to get an object with dynamically chosen extra functionalities?
I want to do a functional like pattern match to get the first two
How to get ItemsControl display items selected Item textbox text value using MVVM pattern?
I want to generate RegEx Pattern from a given matches for example i want
I'm just wondering if Specification pattern is pointless, given following example: Say you want
I want to get a regex which can tell if two given words are
Find the pattern [Number1, Number2] in any given string and get the integer (32bit)
So i have String trDate=20120106; and want to get Date trDate=2012-01-06 and am trying
I'm using the Post/Redirect/Get pattern on a form of mine. I've never used this
I'm going round in circles at the moment trying to get the pattern right

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.