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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:49:41+00:00 2026-05-30T18:49:41+00:00

How can I format this date? <li>Sat Mar 03 2012 14:16:05 GMT+0530 (India Standard

  • 0

How can I format this date?

 <li>Sat Mar 03 2012 14:16:05 GMT+0530 (India Standard Time)</li>

I used new date() function to get date in this li. I want date like this 03/03/2012

  • 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-30T18:49:42+00:00Added an answer on May 30, 2026 at 6:49 pm
    function dateFormat(){
        var d = new Date();
    
        date = d.getDate();
        date = date < 10 ? "0"+date : date;
    
        mon = d.getMonth()+1;
        mon = mon < 10 ? "0"+mon : mon;
    
        year = d.getFullYear()
    
        return (date+"/"+mon+"/"+year);
    }
    
    dateFormat();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can i replace date/time in this format 'Fri Mar 23 15:21:08 2012' with
What format is this date time in PHP 2012-08-16T21:14:03.447? How can I convert it
Can anybody help me get this date format like Fri, 01 Oct 22:26:23 +0200
How can I format the following line to eliminate StyleCop warnings: this.BeginInvoke(this.updateHandler,new object[]{this.tmpbuf}); Now,
I have a Date/Time they come from a Apache server in this format :
I have date in this format 2011-11-02 . From this date, how can we
I have a (date time) stored in database in this format 2011-10-12 02:01:24 when
I have the date in the string format like this Sat Sep 8 10:13:09
I got date, stored in MySQL column like this: 09-11-2012 (format is DD/MM/YYYY ),
I have a date in this format 10/12/2011 12:55:00 PM (MM-DD-YYYY time) I would

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.