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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:11:06+00:00 2026-06-07T14:11:06+00:00

Right now my application is spitting out: Now Showing: 2012-01-07 – 2012-06-07 Which is

  • 0

Right now my application is spitting out:

Now Showing: 2012-01-07 – 2012-06-07

Which is pulled from a jQuery date picker that outputs the format in the same way. I want it to show up as “July 1, 2012 – July 6, 2012”

I’ve tried using the .strftime(“%b %d %y”) method but that hasn’t helped fix this.

In my application, a user selects a date range from the main page and that date is pushed into the model as report[params][:start_date] and report[params][:end_date]

Those dates are pushed into a mySQL query which is rendered in a Javascript Highchart on a reports/id page.

It’s a standard Rails app without anything fancy. My goal is to have the date show up as Month, Date, Year and this jQuery date selector is formatting it as Year-Day-Month. Not sure if I should change the date formatting in my application.js file or what I should do to resolve this.

Any help would be very much appreciated, thanks!

  • 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-07T14:11:08+00:00Added an answer on June 7, 2026 at 2:11 pm

    You’re using the wrong format for .strftime. It should be

    your_date_object.strftime("%B %d, %Y")
    

    jQuery UI’s Datepicker has a dateFormat option.

    $('your_selector').datepicker({
      // your options
      dateFormat: "MM d, yy"
    });
    

    There’s also a $.datepicker.formatDate( format, date, settings ) function to help with date formatting (should you choose to reformat the value of the input when the page loads via jQuery too).

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

Sidebar

Related Questions

I have an application right now that selects files from a directory. what I
I have an application right now that starts a process, then opens a file
So right now I've developed an application that I'm trying to write an API
I have a coldfusion application running right now with a login that sends a
I'm building a desktop application right now that presents its human-readable output as XHTML
I am using Asp.Net/C# and Visual Studio 2008 to build an application.Right now I
Right now I have an MVC application running on http://127.0.0.1:8081/ (it is actually running
Right now whenever I run application It creates a file (file name specified in
Right now I am using sqlite within a ios application, and I want to
Right now, my application is using the c-ares asynchronous DNS resolver library on Windows

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.