Check out the PHP manual on date formatting:
http://us2.php.net/date
Jim
---Original Message---
From: Harpreet
Date: Wednesday, September 17, 2003 02:36:49 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Date question?
I have a field in my sql server called expiration which is of
I have a field in my sql server called expiration which is of type datetime.
It has values as seen in the tables and query analyser as 1/1/01 2:11:11 PM
When i try to display the same value in a php page it shows as Jan 1 2001
2:11PM
How can i view the same format as seen the database on my php
If i have a date in the form 'Nov 11 2011 12:00AM' how can i show the date
as mm/dd/yy and time as 12:00:00
help is appreciated.
Thanks,
Regards
- Original Message -
From: "malte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 12, 20
you also can do
check out date() and mktime() in the php manual... oh yeah and i supposed
2003-04-02 to mean February 4th 2003 if i'm wrong you have to change the
mktime line..
- Original Message -
From: "Disko_kex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 12,
>> [EMAIL PROTECTED] bats]$ echo date("Y-m-d",strtotime("2003-04-02 +9
>> month"));
>> bash: syntax error near unexpected token `('
>> [EMAIL PROTECTED] bats]$
>
>Please tell: how do you get this stuff on Windows?
CygWIN
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit:
> >> If I have a date (2003-04-02) and want to select 9 months later,
> >> how to do?
> >>
> >
> >Try this:
> >
> >echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
>
> [EMAIL PROTECTED] bats]$ echo date("Y-m-d",strtotime("2003-04-02 +9
> month"));
> bash: syntax error near unexpected token `(
>> If I have a date (2003-04-02) and want to select 9 months later,
>> how to do?
>>
>
>Try this:
>
>echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
[EMAIL PROTECTED] bats]$ echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
bash: syntax error near unexpected token `('
[EMAIL PROTECTED] ba
Well you open up yuor agenda and turn the apropriate
pages backwards, or did you intend a certain system?
-Original Message-
From: Disko_kex
To: [EMAIL PROTECTED]
Sent: 9/12/03 3:50 PM
Subject: [PHP-WIN] Date question?
Hi
If I have a date (2003-04-02) and want to select 9 months later,
If I have a date (2003-04-02) and want to select 9 months later, how to
do?
Try this:
echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
Erwin Kerk
WebDeveloper
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PROTECTED]
Sent: Tuesday, June 24, 2003 1:37 PM
To: Harpreet; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Date question
> From: Harpreet [mailto:[EMAIL PROTECTED]
>
> I am using php with sql server. I have a field expiration which is of type
> datetime.
>
> I add a date for the expi
> From: Harpreet [mailto:[EMAIL PROTECTED]
>
> I am using php with sql server. I have a field expiration which is of type
> datetime.
>
> I add a date for the expiration as '06/24/03 09:09:09' using a web form.
> When i try to display the same expiration in an edit form using
> $row["expiration"]
11 matches
Mail list logo