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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:53:01+00:00 2026-06-12T17:53:01+00:00

Possible Duplicate: Convert a Unix timestamp to time in Javascript I am trying to

  • 0

Possible Duplicate:
Convert a Unix timestamp to time in Javascript

I am trying to return a formatted time from a unix time. The unix time is 1349964180.

If you go to unixtimestamp.com and plug in 1349964180 for Timestamp you will get:

TIME STAMP: 1349964180

DATE (M/D/Y @ h:m:s): 10 / 11 / 12 @ 9:03:00am EST

This is what I want, but in javascript.

So something like:

function convert_time(UNIX_timestamp){
......
......
return correct_format;
}

and then the call:
convert_time(1349964180);

and console.log should print:
10 / 11 / 12 @ 9:03:00am EST

  • 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-12T17:53:03+00:00Added an answer on June 12, 2026 at 5:53 pm

    you could try this

    function convert_time(ts) {
       return new Date(ts * 1000) 
    }
    

    and call it like so

    console.log(convert_time(1349964180));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Convert a Unix timestamp to time in Javascript Turn a unix timestamp
Possible Duplicate: Convert a Unix timestamp to time in Javascript I am getting date
Possible Duplicate: Is it possible to get UNIX time from such date 2011-02-27 02:04:46?
Possible Duplicate: How to convert Unix timestamp to hhmmss? I have a timestamp in
Possible Duplicate: Convert Javascript Array to JSON I am trying to figure out how
Possible Duplicate: How can I convert a string to boolean in JavaScript? I have
Possible Duplicate: Convert some code from C++ to C I've got some code that
Possible Duplicate: Convert flat array [k1,v1,k2,v2] to object {k1:v1,k2:v2} in JavaScript? I want to
Possible Duplicate: Convert from char* to NSString? I have char myChar = 'r' How
Possible Duplicate: PHP: Convert uncommon date format to timestamp in most efficient manner possible?

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.