473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

date format

Hi there,

I have developed several applications in Delphi. I used Paradox for my data
storage.
Now, I want to convert these databases to MySql.
So that why I am looking for a way to convert the date format from
YYYY-MM-DD to MM/DD/YYYY.
Is this possible???

gr.,
Stefan.
Jul 20 '05 #1
3 2860
Stefan van Roosmalen wrote:
So that why I am looking for a way to convert the date format from
YYYY-MM-DD to MM/DD/YYYY.
Is this possible???


Do you mean that you have a date-column in your database and you want to
get it out as in MM/DD/YYYY format?

Try function:
DATE_FORMAT(date,format)

See more from:
http://dev.mysql.com/doc/mysql/en/Da...functions.html
Jul 20 '05 #2
I think this is not what I am looking for.

The problem is that I want to re-use an application which was developed for
a database system which is formatting dates like "mm/dd/yyyy". So, I am
looking for a setting which can be used to change the entire date format
within MySQL.

gr.,
Stefan.
"Aggro" <sp**********@yahoo.com> wrote in message
news:yz**************@read3.inet.fi...
Stefan van Roosmalen wrote:
So that why I am looking for a way to convert the date format from
YYYY-MM-DD to MM/DD/YYYY.
Is this possible???


Do you mean that you have a date-column in your database and you want to
get it out as in MM/DD/YYYY format?

Try function:
DATE_FORMAT(date,format)

See more from:
http://dev.mysql.com/doc/mysql/en/Da...functions.html

Jul 20 '05 #3
"MySQL retrieves values for a given date or time type in a standard
output format ..."
[http://dev.mysql.com/doc/mysql/en/Da...me_types.html]

That is to say, when you simply "SELECT DateColumn" you get the value in
YYYY-MM-DD, and this is not customizable in a database-wide manner.

The way to output dates formatted how you like them, you must use the
DATE_FORMAT() function when you retrieve the data.

The way to input dates formatted how you like them is... well, you
can't. You must input dates in "year-month-day" order, according to the
MySQL documentation web page referenced above.

What I do in my web application is to parse a user's date input values
with a flexible date-parsing package (I'm writing in Perl, so I decided
to use the Date::Manip package), and then format the value in YYYY-MM-DD
format before using it in a SQL statement.

Regards,
Bill K.

Stefan van Roosmalen wrote:
I think this is not what I am looking for.

The problem is that I want to re-use an application which was developed for
a database system which is formatting dates like "mm/dd/yyyy". So, I am
looking for a setting which can be used to change the entire date format
within MySQL.

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Simon Brooke | last post by:
I'm investigating a bug a customer has reported in our database abstraction layer, and it's making me very unhappy. Brief summary: I have a database abstraction layer which is intended to...
2
by: amith | last post by:
hi I have written javascript for comparing two dates in US format and finding out whether the start date is greater than the end date and vice versa. In this attempt i have instantiated the...
4
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
3
by: Lyn | last post by:
Hi, I am developing a project in which I am checking for records with overlapping start/end dates. Record dates must not overlap date of birth, date of death, be in the future, and must not...
5
by: Macca | last post by:
Hi, I have a table which has a date/time field. I am storing them as follows :- 01/01/2005 11:25 01/01/2005 19:44 02/01/2005 05:04
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
20
by: andreas | last post by:
When I copy a vb.net project using date formats from one PC with a windows date format f.e. dd/mm/yyyy to another PC having a format yy/mm/dd then I get errors. How can I change for a while in the...
30
by: fniles | last post by:
On my machine in the office I change the computer setting to English (UK) so the date format is dd/mm/yyyy instead of mm/dd/yyyy for US. This problem happens in either Access or SQL Server. In the...
4
by: OzNet | last post by:
I have some functions to calculate the working days in a given period. This includes a table that is queried to calculate the number of public holidays that don’t occur on a weekend. If I test...
11
ollyb303
by: ollyb303 | last post by:
Hello, I am using a dynamic crosstab report to track performance statistics for my company and I have hit a problem. I would like the option to track stats daily (for the last 7 complete...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.