On Thu, January 3, 2008 8:30 am, Adam Williams wrote:
> I have a field in mysql as shown by describe contract;
>
> | length_start | date| YES | | NULL
> ||
>
> Which stores it in the mysql format of -MM-DD. However, I need
> the
> output of my selec
Uhm, a shot in the dark - try:
select date_format(contract.length_start, '%m-%d-%Y') as length_start
HTH, cheers!
Silvio
Adam Williams wrote:
I have a field in mysql as shown by describe contract;
| length_start | date| YES | | NULL
||
Which s
no need for quotes
select date_format(contract.length_start, '%m-%d-%Y') as length_start from
contract where user_id = 1;
bastien
> Date: Thu, 3 Jan 2008 08:30:55 -0600> From: [EMAIL PROTECTED]> To:
> php-general@lists.php.net> Subject: [PHP] mysql date questio
[snip]
I have a field in mysql as shown by describe contract;
| length_start | date| YES | | NULL
||
Which stores it in the mysql format of -MM-DD. However, I need the
output of my select statement to show it in MM-DD- format. I can
sel
Adam Williams wrote:
select date_format('contract.length_start', '%m-%d-%Y') as length_start
from contract where user_id = 1;
This has nothing to do with PHP, but the first parameter to date_format
should not be in quotes.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.p
I have a field in mysql as shown by describe contract;
| length_start | date| YES | | NULL
||
Which stores it in the mysql format of -MM-DD. However, I need the
output of my select statement to show it in MM-DD- format. I can
select i
From: "Scott Miller" <[EMAIL PROTECTED]>
I have a mysql database that has a date field and a time field.
I want users to be able to enter a date and a time in text boxes on an
html
form and have them end up in the database.
Code examples would be good here. Either way, the format for a DATE field
[snip]
DATE field in a mysql database.
What obvuios thing did I miss? Note I am not using the system date or
time
stamp, these are entered dates.
[/snip]
You're using a DATE field in the MySQL database. MySQL requires an ISO
formatted date unless you manipulate it, such as 2004-09-14
http://dev.
Hi,
I have checked the recent list archives and looked up various PHP functions.
I know what I want should be simple but, apparently not simple enought for
me.
I have a mysql database that has a date field and a time field.
I want users to be able to enter a date and a time in text boxes on an
9 matches
Mail list logo