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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:22:30+00:00 2026-05-26T07:22:30+00:00

I am a PHP developer and I am working on a project in which

  • 0

I am a PHP developer and I am working on a project in which I need to store Arabic dates in my database.

However, I have created the application and embedded a JavaScript Arabic calender in it.

Now when I select a date, e.g 12/02/1442, and press the save button, it gives me the following error:

Year Out Of Range
  • 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-26T07:22:30+00:00Added an answer on May 26, 2026 at 7:22 am

    These dates (Arabic, Jalali, …) usually have problems with SQL servers. In my experience, there are 3 ways to handle it:

    1. Using character types for storing dates into the fields with any custom format. (The problem are: Manipulating, arithmetic, sorting,… which they are hard to implement)

    2. Using integer or fixed character type for storing dates, like 14420101 for 1/1/1442. (Same as first one, but sorting is solved)

    3. Using date or timestamp type for storing, you should convert dates to standard date format before storing it into the database, and when you’re reading them convert them back. This method needs a external programming language to handle (Usually there is an external language). Or you can write a internal functions in your database.

    Just storing dates then methods 1 and 2 are enough.

    Otherwise, I suggest third approach, because you can use date and time pre-defined functions which exists in database servers or programming languages.

    For example you can use date_diff() easily in PHP, or use postgres internal functions for dates.

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

Sidebar

Related Questions

I am a web-developer working in PHP. I have some limited experience with using
I've been working with a developer on a web-based application. I have some experience
I've recently been working with PHPUnit which requires PEAR. Every PHP developer I mention
I'm working on a little project, basically I have some text on my PHP/HTML
I'm working on a PHP project with several developers, each who has their own
I'm working on a fairly large PHP project written in a procedural style (it
I was working as a freelance php developer for a while, and handled all
We have various php projects developed on windows (xampp) that need to be deployed
I am working on a large project which is a derivative of XRMS CRM.
I am working on a project currently where the Index.php file basically acts as

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.