[snip]
I have a page that is for booking attendance to events, and instead of
using
a date picker, I want to display drop-down selects which cover the
ranges of
dates that the event is occurring at. My question is, is there an easy
way
to determine the dates in between the date from and to that is
*PLEASE NOTE*
I know that if I spent time on it, I would be able to do it, but I have
A very close deadline and if anyone else has been through this I would
*really* appreciate the help...
Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB
functions.
On Mon, 2005-01-24 at 14:07, Mikey wrote:
*PLEASE NOTE*
I know that if I spent time on it, I would be able to do it, but I have
A very close deadline and if anyone else has been through this I would
*really* appreciate the help...
Are you using MySQL? If so you can start with the DATE_ADD
[snip]
*PLEASE NOTE*
I know that if I spent time on it, I would be able to do it, but I
have
A very close deadline and if anyone else has been through this I would
*really* appreciate the help...
Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB
functions.
Mikey wrote:
I have a page that is for booking attendance to events, and instead of
using
a date picker, I want to display drop-down selects which cover the ranges
of
dates that the event is occurring at. My question is, is there an easy way
to determine the dates in between the date from
On Tuesday 25 January 2005 04:07, Mikey wrote:
*PLEASE NOTE*
I know that if I spent time on it, I would be able to do it, but I have
A very close deadline and if anyone else has been through this I would
*really* appreciate the help...
Are you using MySQL? If so you can start with the
I know that if I spent time on it, I would be able to do it, but I have
A very close deadline and if anyone else has been through this I would
*really* appreciate the help...
Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB
functions. http://www.mysql.com/date Then
Hello,
I have a web page that loads php code from another file using include,
the second file calls a function from a third file after doing a include
on it.
I am running php 4.3.7
Below is the snip of code that gets called to update the database. The
problem is with the tentry_time value.
On Sunday 16 January 2005 15:22, Michael Gale wrote:
Not a direct answer to your problem ...
$query=INSERT INTO tentry_table SET ticket_id = ' . $ticket . ',;
$query .= tentry_date = ' . date(Y-m-d) . ',;
$query .= tentry_time = ' . date(H:j:s) . ',;
1) When doing something involving
I might be doing this backwards, but how do I extract the date from $week5 and
display $week5 + 4 days. I would like to create a function so when I pass
echo displaydate($week5);
it echos February 14-18
$week0 = 2005-01-10;
$week1 = 2005-01-17;
$week2 = 2005-01-24;
$week3 = 2005-01-31;
$week4
It seems that development of Pear::Date has stalled. The package does has
some major bugs when used with php5 - both in the main Date class and in
Date_Span. There has been filled a bug report as early as september
2004, but no fix has been made yet and no response from a developer, other
than
echo date('F',strtotime("next
month"));
This is printing February right now. Does this
sound right or is this a but in strtotime()? is "next month" a valid
parameter?
and yes, I am sure our server is set to
December(todays date).
echo date('F',strtotime("last
month"));
Does give me
Try this instead...
echo date('F',strtotime(+1 month));
read through the user comments at...
http://us2.php.net/manual/en/function.strtotime.php
there are some things pertaining to your situtation
-Chris
On Wed, 22 Dec 2004 15:38:38 -0800, PHP [EMAIL PROTECTED] wrote:
echo
Hi,
I did use the +1 month, but I was just curious as to what was up.
Try this instead...
echo date('F',strtotime(+1 month));
read through the user comments at...
http://us2.php.net/manual/en/function.strtotime.php
there are some things pertaining to your situtation
-Chris
On Wed, 22 Dec 2004
Ok,
I was using the download version of the manual and it didn't have any user
comments on this, but the online one does.
Hi,
I did use the +1 month, but I was just curious as to what was up.
Try this instead...
echo date('F',strtotime(+1 month));
read through the user comments at...
try +one month
- Original Message -
From: PHP
To: php
Sent: Wednesday, December 22, 2004 6:38 PM
Subject: [PHP] Date problem?
echo date('F',strtotime(next month));
This is printing February right now. Does this sound right or is this a but
in strtotime()? is next month
?)
Hope this helps clarify mktime(), strtotime() and date().
-TG
-Original Message-
From: Christopher Weaver [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 7:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Date Manipulation
This code:
echo strtotime(now);
echo
you want.
I know mktime and strtotime were already mentioned, but I think examples
help too so pardon me for expanding on it.
-TG
-Original Message-
From: Christopher Weaver [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 9:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP
This code:
echo strtotime(now);
echo mktime(Ymd, strtotime(now));
is producing this result:
1101945775
Warning: mktime(): Windows does not support negative values for this
function ...
-1
What am I doing wrong?
Thanks again.
John Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL
* Christopher Weaver [EMAIL PROTECTED]:
This code:
echo strtotime(now);
echo mktime(Ymd, strtotime(now));
is producing this result:
1101945775
Warning: mktime(): Windows does not support negative values for this
function ...
-1
What am I doing wrong?
Using the wrong function, or
Sorry about that. Works great with date.
Thanks.
Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Christopher Weaver [EMAIL PROTECTED]:
This code:
echo strtotime(now);
echo mktime(Ymd, strtotime(now));
is producing this result:
1101945775
Warning:
Christopher Weaver wrote:
I've looked at the date functions in the manual but can't find what I need.
All I want to do is add and subtract days without ending up with bogus date
values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36.
Just a nod in the write direction would be great.
mktime() or
I've looked at the date functions in the manual but can't find what I need.
All I want to do is add and subtract days without ending up with bogus date
values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36.
Just a nod in the write direction would be great.
Thanks.
--
PHP General Mailing List
I'm getting a:
Parse error: parse error, unexpected '%' in
/home/mysite/public_html/userpage.php on line 120
th scope=row?php echo
$rsVJ-Fields('DATE_FORMAT(LstUpdate,'%m/%d/%Y')');
?/th
th scope=row?php echo
$rsVJ-Fields('DATE_FORMAT(InitOn,'%m/%d/%Y')');
?/th
th
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 25 November 2004 18:39, Stuart Felenstein wrote:
I'm getting a:
Parse error: parse error, unexpected '%' in
/home/mysite/public_html/userpage.php on line 120
th
SNIP
?php
echo strtotime('1950-01-01');
?
I'm guessing Red Hat Enterprise or at least the kernel I'm using (which is
the latest RH kernel) qualifies under the Linux category above. Also, with
the application I'm writing, I need to deal with dates after 2038 too. So
that is why I'm investigating
Hi Robert,
Storing the date in my database isn't the issue I'm running into. The
problem I'm having is that if I have a date 1950-01-01, how can I display
it in my PHP script as Jan 1, 1950. Or if I have 2040-04-01, how to get
it to display as Apr 1, 2040. I can't see a way to do that right
clever using strtotime() however.
http://us2.php.net/manual/en/function.strtotime.php
-M
-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 9:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Date handling
Hi Robert,
Storing the date in my database isn't
Yes, but time() returns a Unix timestamp which has a limit of 2038. For
example, what if I would like to calculate the date of 40 years from today?
I can't do that with the normal PHP date functions. I would have to use
PEAR Date or something similar, which is my original question - of what
On 16/11/2004, at 6:29 AM, Robert Sossomon wrote:
I have a date in format YY-MM-DD in a MySQL table. I need to pull it
back to display it in either format: MM-DD-YY or Month Day, Year
format.
Do it in PHP, not in the query, IMHO.
?
$date = 04-11-28;
list($year,$month,$day) = explode('-',$date);
of using date()
or strftime() and possibly getting invalid data.
Additionally, are there any plans to make an official PHP date extension
that handles dates outside a Unix timestamp range as something built into
the language itself rather than as a '3rd party extension' which the PEAR
Date module
From: Robert Sossomon [mailto:[EMAIL PROTECTED]
I have a date in format YY-MM-DD in a MySQL table. I need to
pull it back to display it in either format: MM-DD-YY or
Month Day, Year format.
I can't figure out how to write the query to do it, and am
not sure how to make PHP just parse
On Mon, 15 Nov 2004 14:29:59 -0500, Robert Sossomon
[EMAIL PROTECTED] wrote:
I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to
display it in either format: MM-DD-YY or Month Day, Year format.
I can't figure out how to write the query to do it, and am not sure how
I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to
display it in either format: MM-DD-YY or Month Day, Year format.
I can't figure out how to write the query to do it, and am not sure how to make
PHP just parse the one given and dump it back out in the way I need it.
, are there any plans to make an official PHP date
extension
that handles dates outside a Unix timestamp range as something built
into
the language itself rather than as a '3rd party extension' which the
PEAR
Date module appears to be since it's not in the core PHP language?
I believe I've heard rumors
On 16/11/2004, at 7:05 AM, Ryan wrote:
I would like to find out the 'official' way to handle dates in PHP. I
am
aware of the limits on a Unix timestamp, but I am writing a financial
application that needs to deal with dates both before 1970 and after
2038
and of course have run into problems
Hi Justin,
Thanks for your reply. Actually the main issue that I'm running into is
that I cannot get Unix timestamps before 1970. I'm running on Red Hat
Enterprise Linux (kernel 2.4.21-20.EL). If I run:
?php
echo strtotime('1950-01-01');
?
the script outputs -1, which then of course
Is there any way yo get the date and time using date() from a Internet time
server? Right now I am getting it from my servers date and time which seems
to be unpredictable since my ISP seems to change it at random.
Windows shows two time servers time.windows.com and time.nist.gov and I was
On Mon, 8 Nov 2004 13:06:41 -0500, Aaron Todd [EMAIL PROTECTED] wrote:
Is there any way yo get the date and time using date() from a Internet time
server?
php -r system('ntpdate -q ntp.nasa.gov');
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP
Wouldn't just making the script get 2 time stamps be more efficient, since you
are creating the database calls anyways? Or am I over simplifying it?
?php
// current time at start of script
$before = strtotime(now);
//All your DB stuff
{
}
// current time at end of script
$after =
That's not quite what I am talking about. I looked at that already.
I can could also put the date and time that the script was ran into the
MySql database by have a TIMESTAMP field in the database.
I would like to compare the date and time of timestamp in the database
to the current time and
[snip]
That's not quite what I am talking about. I looked at that already.
I can could also put the date and time that the script was ran into the
MySql database by have a TIMESTAMP field in the database.
[/snip]
You can use that to convert your time in the DB, get the current time
when seeking
I have a shell script that inserts the unix date and time that the
script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT
2004. I would like to have my web page do the math so that it displays
the time since the script ran. How can I do the math so that the web
page will display
[snip]
I have a shell script that inserts the unix date and time that the
script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT
2004. I would like to have my web page do the math so that it displays
the time since the script ran. How can I do the math so that the web
page will
I guess.
Are you telling me that I should take the timestamp, convert it to
epoch time, the us the time function to get the current epoch time,
then subtract the timestamp epoch time from the current epoch time? I
think that is what you are saying.
I know I can get the current epoch time in
Hi,
Friday, October 29, 2004, 4:51:20 AM, you wrote:
MT I have a shell script that inserts the unix date and time that the
MT script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT
MT 2004. I would like to have my web page do the math so that it displays
MT the time since the
Ok, so here is what I have. Please check to see if there is a better
way. There are a lot of database calls to me.
?
$database_name = CETechnology;
$host = server;
$login = username;
$password = password;
$ethernet_address = 00:01:93:8e:69:50;
$db_connect = mysql_connect( $host, $login,
-- Original message from Mike Tuller [EMAIL PROTECTED]: --
Ok, so here is what I have. Please check to see if there is a better
way. There are a lot of database calls to me.
There are. Do it in one query.
$query = SELECT * FROM hardware_assets WHERE
Hi,
Friday, October 29, 2004, 7:19:09 AM, you wrote:
MT Ok, so here is what I have. Please check to see if there is a better
MT way. There are a lot of database calls to me.
MT ?
MT $database_name = CETechnology;
MT $host = server;
MT $login = username;
MT $password = password;
MT
Hi,
i'm pleasure to write to u and hope to finde an answer..
my problem is with date( ) function which is display a GMT time which is different
from my zone with 3 hours,,,how can i correct this.
Thanks in advance.
Magdy
On Sun, 19 Sep 2004 14:29:54 +0300, Magdy [EMAIL PROTECTED] wrote:
my problem is with date( ) function which is display a GMT time which is different
from my zone with 3 hours,,,how can i correct this.
The date() function, gets the system current date/time if you don't
pass the second
Hi,
I have this date in timestamp format:
$a= 20040810114155;
I want to add 7 days to this date. How can i do that?
Thanks
Home, no matter how far...
http://www.home.ro
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
DIFF FanneHH wrote:
I have this date in timestamp format:
$a= 20040810114155;
I want to add 7 days to this date. How can i do that?
echo
date('YmdHis',mktime(substr($a,8,2),substr($a,10,2),substr($a,12,2),substr($a,4,2),substr($a,6,2)+7,substr($a,0,4)));
Looks like a MySQL timestamp. If so, you
On 11 Aug 2004 10:35:37 -, DIFF FanneHH [EMAIL PROTECTED] wrote:
Hi,
I have this date in timestamp format:
$a= 20040810114155;
Convert it to a unix timestamp (that's a mysql timestamp), then add 7
days worth of seconds to it. Search the archives or the web for more.
If you're stuck,
Hello,
Is there a function to determine the difference between two dates? I am
asking so I can do some date verification for COPA.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Does anyone have a date-diff function in PHP that *doesn't* use Unix
time stamps? I need to calculate differences between two date values,
but the range well exceeds that which date supports on our server.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each week.
I want to have a page that displays the results for the last week only.
The date format in the field is -MM-DD
Hi,
A bit confused, I downloaded a function and it says it takes a date
objectwhat exactly is a date object?
This is exactly what is written The function takes a date object as its
only parameter.
I checked out the manual and tried a timestamp, and then checked date,
getdate, mktime etc
am
From: Ryan A [EMAIL PROTECTED]
A bit confused, I downloaded a function and it says it takes a date
objectwhat exactly is a date object?
This is exactly what is written The function takes a date object as its
only parameter.
No such thing. If you look at the code, though, it looks like
From: Ryan A [EMAIL PROTECTED]
A bit confused, I downloaded a function and it says it takes a date
objectwhat exactly is a date object?
This is exactly what is written The function takes a date object as
its
only parameter.
No such thing. If you look at the code, though, it
* Thus wrote Ryan A ([EMAIL PROTECTED]):
From: Ryan A [EMAIL PROTECTED]
A bit confused, I downloaded a function and it says it takes a date
objectwhat exactly is a date object?
This is exactly what is written The function takes a date object as
its
only parameter.
No
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
I'm trying to store a date in a date/time field using the short date
format ( m/d/ ). For some reason it won't let me post an empty
value to that field in the DB. I've tried using empty quotes ( ) or
NULL and I always get a datatype mismatch sql
hello all,
i am new to php, i am trying to call the date function this way:
?php echo date(d/m/y); ?
and the result i get is: object18/03/04
any help would be appreciated
Khaled Jouda
cell. phone: 0163-2382758
fax: 1(801)439-1253
snip
i am new to php, i am trying to call the date function this way:
?php echo date(d/m/y); ?
and the result i get is: object18/03/04
any help would be appreciated
/snip
I recommend the manual and google
http://www.php.net/manual/en/ref.datetime.php
http://www.php.net/date
Are you sure that you aren't echoing something else somewhere in your
script as well? My output from this code is:
18/03/04
--Sam
Khalid Judeh wrote:
hello all,
i am new to php, i am trying to call the date function this way:
?php echo date(d/m/y); ? and the result i get is:
Hello php-general,
how to display date like Monday, 1 January 1903 18:11 pm in php ?
(since the date() function only able to display date before 1970)
(and why it only support date after 1 Jan 1970) ?
thanks
--
Best regards,
adwin
--
PHP General Mailing List (http://www.php.net/)
To
Hello, I am new to using the date function. I am in the need of a
script that changes an image on a web page on the first day of each
month and keeps the image there until the first day of the next month.
I have tried to look for something that could come close but still
didnt work. Can you
Hello Jason,
Friday, March 5, 2004, 1:51:57 PM, you wrote:
JB Hello, I am new to using the date function. I am in the need of a
JB script that changes an image on a web page on the first day of each
JB month and keeps the image there until the first day of the next month.
JB I have tried to
Hi,
You might already be fed up with my posts but I'm a complete PHP newbie and find these
groups are the best way to learn! Anyway I have the database date in the format:
-mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I only want
to show the user the date in the
snip
You might already be fed up with my posts but I'm a complete PHP newbie
and find these groups are the best way to learn! Anyway I have the
database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24
07:57:59 but when in some situations I only want to show the user the
date in the format
Depending on your database engine (which you didn't mention in your
post), some allow you to format the date however you want it as you pull
it out of the database in your sql query. I always find this to be the
easiest way to do it. That way you don't have to worry about formatting
the data
On Tue, 2004-02-24 at 13:29, Matthew Oatham wrote:
You might already be fed up with my posts but I'm a complete PHP
newbie and find these groups are the best way to learn! Anyway I have
the database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24
07:57:59 but when in some situations I
hi there
how do i make php give me yesterday's date?
i tried
date(Y-m-d)-1
but if today would be the 1st of july (2004-07-01), yesterday would be 00.
july (2004-07-00) according to that calculator.
is there any way to make this one get it right? without any if-structures if
possible
regards
[snip]
hi there
how do i make php give me yesterday's date?
i tried
date(Y-m-d)-1
but if today would be the 1st of july (2004-07-01), yesterday would be
00.
july (2004-07-00) according to that calculator.
is there any way to make this one get it right? without any
if-structures if
possible
Hi,
Friday, February 20, 2004, 6:32:27 AM, you wrote:
JB [snip]
JB hi there
JB how do i make php give me yesterday's date?
JB i tried
JB date(Y-m-d)-1
JB but if today would be the 1st of july (2004-07-01), yesterday would be
JB 00.
JB july (2004-07-00) according to that calculator.
JB is
Hello,
Does any one knows how do I set my date() function to return the days
of the week and moth in my own language (brazilian portuguese)?
Thanks,
Thiago Pavesi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Thiago,
Wednesday, February 11, 2004, 8:03:47 PM, you wrote:
TP Does any one knows how do I set my date() function to return the days
TP of the week and moth in my own language (brazilian portuguese)?
setlocale()
--
Best regards,
Richardmailto:[EMAIL
Hi
I want to substract $first_date to $second_date and print the result
this way :
xx days, xx hours, xx minutes
i tried (strtotime($second_date)-strtotime($first_date)) but what i get
is a timestamp
and i dont know what to do with it
Is there already a function to print the result in a human
BEOI 7308 wrote:
Hi
I want to substract $first_date to $second_date and print the result
this way :
xx days, xx hours, xx minutes
i tried (strtotime($second_date)-strtotime($first_date)) but what i
get is a timestamp and i dont know what to do with it
Is there already a function
Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
---BeginMessage---
BEOI 7308 wrote:
Hi
I want to substract $first_date to $second_date and print the result
this way :
xx days, xx hours, xx minutes
i tried
Did I miss something at the FAQ? date(F); gives me this month. Can I get it to give
me next month?
These combinations don't work:
?php echo date(F)+1; ?
?php echo date(F+1); ?
What is the minimum version for this to work? Or is this my problem? It echoes 1 in
the html.
try
?= date(F, strtotime(+1 month)); ?
g. martin luethi
Mon, 26 Jan 2004 03:08:30 -0500 John Taylor-Johnston
[EMAIL PROTECTED]:
Did I miss something at the FAQ? date(F); gives me this month. Can
I get it to give me next month?
These combinations don't work:
?php echo date(F)+1; ?
?php echo
Does anyone know if there is any speed advantage to saving a date as a unix
timestamp or a numeric field instead of a date field? (in Mysql)
thanks,
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL
alphanumeric characters being -'s. The best way to probably find out is to
select a large amount of records in both formats and see which is quicker.
hth
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 1:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP
Diana Castillo wrote:
Does anyone know if there is any speed advantage to saving a date as a unix
timestamp or a numeric field instead of a date field? (in Mysql)
thanks,
Well, I prefer using an int(14) field for saving unix dates (so, I save
the date as unix and not as date field). Thus is
Hi everyone!
Let's see if you can help me with this odd function i want to do.
Imagine i have to dates,for example:
$date1=2002-10-01
$date2= 2003-12-10
I want a function to list all the dates that are between these two.
2002-10-01
2002-10-02
2002-10-03
.
.
2003-12-09
2003-12-10
PROTECTED]
Sent: Wednesday, December 10, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Date Listing
Hi everyone!
Let's see if you can help me with this odd function i want to do.
Imagine i have to dates,for example:
$date1=2002-10-01
$date2= 2003-12-10
I want a function to list all the dates
[snip]
Let's see if you can help me with this odd function i want to do.
Imagine i have to dates,for example:
$date1=2002-10-01
$date2= 2003-12-10
I want a function to list all the dates that are between these two.
2002-10-01
2002-10-02
2002-10-03
.
.
2003-12-09
2003-12-10
Has
Hi, is there a PHP function that will convert MM/DD/ to MMDD?
Also I will need to take into affect some people may put in M/D/ (some
people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way
to do this?
--
PHP General Mailing List (http://www.php.net/)
To
snip
Hi, is there a PHP function that will convert MM/DD/ to MMDD?
Also I will need to take into affect some people may put in M/D/
(some
people may put in 1 instead of 01, 2 instead of 02, etc). Is there a
way
to do this?
/snip
take a look at these functions
: Thursday, 11 December 2003 8:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] date conversion
Hi, is there a PHP function that will convert MM/DD/ to MMDD?
Also I will need to take into affect some people may put in M/D/ (some
people may put in 1 instead of 01, 2 instead of 02, etc
ADAM WILLIAMS snip
Hi, is there a PHP function that will convert MM/DD/ to MMDD?
Also I will need to take into affect some people may put in M/D/
(some
people may put in 1 instead of 01, 2 instead of 02, etc). Is there a
way
to do this?
/snip
MATT MATIJEVICH snip
take a look at
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003. They won't
be entering today's date, so I can't use the timestamp with the date
Hi,
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003.
They won't
be entering today's date, so I can't use the timestamp with the date
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003. They won't
be entering today's date, so I can't use the timestamp with the date
On maandag 1 december 2003 21:04 Curt Zirzow told the butterflies:
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]):
When I do this script, I didn't get a : and numbers in
second. --snip-- date(Y-m-d H:i:s);
--snip--
works fine with phpversion() 4.2.2
Curt
--
If eval() is the
Hi Everyone!!!
I noticed that date() function act a little funny, so I am wondering if
anyone of you have noticed this problem or not. I'm just curious because I
wanna know if it is my issue or is it a general issue for everyone. I'm
using PHP version 4.2.3 on Unix machine. Please don't
[snip]
When I do this script, I didn't get a : and numbers in second.
--snip--
date(Y-m-d H:i:s);
--snip--
[/snip]
When I cut and paste your code (PHP v 4.3.n) it works OK
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Scott Fletcher wrote on maandag 1 december 2003 16:41:
When I do this script, I didn't get a : and numbers in second.
: --snip--
: date(Y-m-d H:i:s);
: --snip--
:
: But when I do this script by adding a period to it, it worked
: okay. --snip--
: date(Y-m-d H:i:s.);
: --snip--
:
: Thanks,
:
Okay thanks... I'll do a workaround for now until PHP get upgraded in the
near future.
Thijs Lensselink [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Scott Fletcher wrote on maandag 1 december 2003 16:41:
When I do this script, I didn't get a : and numbers in second.
: --snip--
401 - 500 of 1042 matches
Mail list logo