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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:38:35+00:00 2026-05-18T12:38:35+00:00

In my database, I have value set as 9/28/2010 11:30:00 PM . Now I

  • 0

In my database, I have value set as 9/28/2010 11:30:00 PM.

Now I am making use of dataResultSet.getTimestamp(3) which gives me a value as 2010-09-28 23:30:00.0. I want my result to be same as that of database values.i.e, I want the time to be 11:30.

What could be solution for this? Can anyone help me with this?

Thanks in Advance.

  • 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-18T12:38:36+00:00Added an answer on May 18, 2026 at 12:38 pm

    Actually, I suspect that in your database, the value is set as 1285716600. What you likely mean is that your database client is displaying this value as “9/28/2010 11:30:00 PM”.

    This is entirely a matter of formatting – a Date represents a specific instant in time, and is not a String. Rather, there are multiple potential ways of converting a Date into a String representation of it. In particular, note that you don’t get the date in any particular format from the database; it arrives as a Date, and it’s up to you to format it.

    How are you converting this date into a String? If you want a particular output style, you should use the SimpleDateFormat class (or equivalent).

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

Sidebar

Related Questions

in my database we have a field which is going beyond int max value,
I have this database structure, SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO; CREATE TABLE IF NOT EXISTS `announces` (
I have a value from my database. How do I extract the date from
Problem: I have a value in a database table. This value can either contain
In my SQL database I have a column that contains a fiscal year value.
I have one database table TABLE_TIPS with two value 1. tips_id (auto increment) 2.
I Have a database called 'lms' with two tables loan and value, table loan
So I have the following value from database $atag = <a href="http://blackberry.com/twitter" rel="nofollow">Twitter for
Lets say we have a database table with two columns, entry_time and value. entry_time
I'm working with a database set up like this: entity field value 1 start_date

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.