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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:24:40+00:00 2026-05-26T06:24:40+00:00

In my javascript, I have a unix timestamp (in this instance `1318305600000) and I

  • 0

In my javascript, I have a unix timestamp (in this instance `1318305600000″) and I need to convert that into a human readable date via Javascript.

How do I go about doing 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-05-26T06:24:41+00:00Added an answer on May 26, 2026 at 6:24 am
    var date = new Date(unix_timestamp*1000);
    var hours = date.getHours();
    var minutes = date.getMinutes();
    var seconds = date.getSeconds();
    // will display time in 21:00:00 format
    var formattedTime = hours + ':' + minutes + ':' + seconds;
    

    For complete reference

    getDate()   Returns the day of the month (from 1-31)
    getDay()    Returns the day of the week (from 0-6)
    getFullYear()   Returns the year (four digits)
    getHours()  Returns the hour (from 0-23)
    getMilliseconds()   Returns the milliseconds (from 0-999)
    getMinutes()    Returns the minutes (from 0-59)
    getMonth()  Returns the month (from 0-11)
    getSeconds()    Returns the seconds (from 0-59)
    getTime()   Returns the number of milliseconds since midnight Jan 1, 1970
    getTimezoneOffset() Returns the time difference between GMT and local time, in minutes
    getUTCDate()    Returns the day of the month, according to universal time (from 1-31)
    getUTCDay() Returns the day of the week, according to universal time (from 0-6)
    getUTCFullYear()    Returns the year, according to universal time (four digits)
    getUTCHours()   Returns the hour, according to universal time (from 0-23)
    getUTCMilliseconds()    Returns the milliseconds, according to universal time (from 0-999)
    getUTCMinutes() Returns the minutes, according to universal time (from 0-59)
    getUTCMonth()   Returns the month, according to universal time (from 0-11)
    getUTCSeconds() Returns the seconds, according to universal time (from 0-59)
    getYear()   Deprecated. Use the getFullYear() method instead
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well I have a strange problem while convert from unix timestamp to human representation
I have a Unix timestamp that comes from a database that is (unfortunately) in
I have Javascript code that does this: var oObjchbox = document.getElementById(CheckBox_ + countyId); The
Does jquery/javascript have any event model that you can attach to your objects? Basically
Javascript I have code that will hide various sections in a MS CRM form
I have Javascript that opens another window and registers a click handler for all
I have JavaScript that is doing activity periodically. When the user is not looking
I have javascript code embedded inside a html template file. When I load this
I have javascript string variable with var sttr=We prefer questions that can be answered
In my javascript I have this loopDeLoop: while (foo !== bar) { switch (fubar)

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.