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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:27:18+00:00 2026-06-02T10:27:18+00:00

I am using date function in javascript to get the currentDate. as var currentTime

  • 0

I am using date function in javascript to get the currentDate.
as

var currentTime =new Date()

But it is giving me different response in IE and Firefox as

Consider for today’s Date

IE – Tue 24 Apr 17:05:22 UTC 0530 2012

Mozilla – Tue 24 Apr 17:05:22 2012 GMT 0530

The Problem is that I Want to convert today’s date which is in “String” to “Date” into format – EEE mmm-dd hh:mm:ss IST yyyy

But as i m getting different response in this browser I m not getting how to apply simpleDateformatter to convert current date and time to the suitable format .

  • 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-02T10:27:20+00:00Added an answer on June 2, 2026 at 10:27 am

    You can use functions of object Date. For example:

    var currentTime = new Date();
    var date = currentTime.getDate();
    var day = currentTime.getDay();
    var hours = currentTime.getHours();
    

    With help this functions you can convert current date and time to the suitable format.

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

Sidebar

Related Questions

I am using http://nithinbekal.com/2009/javascript-how-to-create-a-simple-countdown-timer/ But when I run it in firefox I get the
I have tried using date(m/d/Y, strtotime(04-05-2012)) but I will get 05/04/2012 or on some
I am using wordpress the_date() function to get the post date , and it
I've seen this: how to get formatted date time like 2009-05-29 21:55:57 using javascript?
<script language='javascript' type='text/javascript'> function ajaxFunction(){ var ajaxRequest; try{ // Opera 8.0+, Firefox, Safari ajaxRequest
I am using the date() function to display a timestamp from my databse. $date
When trying to insert data programatically using PHP, via the function date('c') It returns
I am using Oracle's to_char() function to convert a date to a week number
Hi I am using date() in my script to get todays date automatically. On
I am using jQuery to create an anchor and bind it with JavaScript function

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.