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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:41:43+00:00 2026-05-19T02:41:43+00:00

Hi In my application the user can selects a date in a dd/mm/yyyy format

  • 0

Hi
In my application the user can selects a date in a “dd/mm/yyyy” format from a calendar and save it to a date field in the database (mySql).
Everything is going ok on my local server (in Israel) but on my host server ( in the US) it fails.
I did some checking in the console and found that
in my local computer(Israel) when I do the following:

d=Date.new
d.reported_date=”23/01/2011″,br>
d.save
I get
=>true.

In my host server(US) when I do the following:

d=Date.new
d.reported_date=”23/01/2011″
d.save
I get
=>false

When I did this check with another date for example “04/01/2011”
the local and the host could save the record.

So I concluded that it seems like the host(in US) can receive date only in “mm/dd/yyyy” format and convert it to mySql date format
and the local computer(in Israel) can received date only in “dd/mm/yyyy” format and convert it to mySql date format.
(Both in the server and in my local machine the format in the mySql server is yyyy-mm-dd)

I need to find a solution which can adjust mySql in my local machine to behave like in the host server.

I will be glad to some advise

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-05-19T02:41:44+00:00Added an answer on May 19, 2026 at 2:41 am

    Try using yyyy-mm-dd instead, that can never be read wrong and all databases I have worked with accepts that format.

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

Sidebar

Related Questions

I have a Timestamp value that comes from my application. The user can be
We have this PHP application which selects a row from the database, works on
I have a web application with users and their documents. Each user can have
In a web application I am working on, the user can click on a
I have an application that shows a list of items. The user can click
How can I dismiss dialog in Cocoa application when user presses Esc or Enter
How can I find out, which keyboard layout the user of my ruby application
For part of a web application the user needs to import some data from
I'm making a navigation based application. When the user selects a row on the
I'm creating a application that will fetch data from an SQLite database and display

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.