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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:46:15+00:00 2026-05-26T14:46:15+00:00

I am completing a tutorial which can be found here…http://www.elated.com/articles/cms-in-an-afternoon-php-mysql/ I am having problems

  • 0

I am completing a tutorial which can be found here…http://www.elated.com/articles/cms-in-an-afternoon-php-mysql/

I am having problems getting the correct date format into the database. I have successfully add JQuery UI calendar with a format of dateformat: “yy-mm-dd” but I want to add the date in the format “dd-mm-yy”

The UNIX Timestamp always seems to put the year first eg. 2010-04-03

This is a line of code from my PHP extracting the date…

$sql = "SELECT SQL_CALC_FOUND_ROWS *, UNIX_TIMESTAMP(publicationDate) AS publicationDate FROM articles ORDER BY " . mysql_escape_string($order) . " LIMIT :numRows";

This is one adding the date which is the important bit as most of the users will understand the dd-mm-yy format better…

 $sql = "INSERT INTO articles ( publicationDate, title, summary, content ) VALUES (FROM_UNIXTIME(:publicationDate), :title, :summary, :content )";

Any help greatly appreciated as I’m at a lose, even after reading part of the PHP Manual.

Many thanks,
CD

  • 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-26T14:46:16+00:00Added an answer on May 26, 2026 at 2:46 pm

    If the issue is that YY-MM-DD is stored instead of DD-MM-YY, why not reverse it?

    list($yy, $mm, $dd) = explode("-", $datestring);
    $ddmmyy = "$dd-$mm-$yy";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.learncpp.com/cpp-tutorial/25-floating-point-numbers/ I have been about this lately to review C++. In general computing class
https://github.com/doubleencore/DETweetComposeViewController I followed twitter integration here for supporting twitter for both ios5 and ios4.
I am trying to understand the 'SocketAsyncEventArgs' class in C#. http://msdn.microsoft.com/en-us/library/system.net.sockets.socketasynceventargs.aspx I am following
I am following through this tutorial and after completing it I am getting an
I am currently working through the tutorial on Django's website. Upon completing the following
On the Android developers website, there is a Notepad tutorial and I found a
<?php # Nettuts Tutorial using PHP Data Objects (PDO), /**This file contains the database
I am completing my first database project which aims to build a simple discussion
I have followed this guide for PHP Twitter Apps by OAuth Here in test.php
After completing the tutorial from the codeigniter user guide I ran into a problem

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.