Dear Friends,
I'm new in PHP programing, and i need a way to add date in php.
here is the sample
If today is 29/01/2005 (dd/mm/yy)
and i need to make an apointment for another 10 days
the date recorded sould be 08/02/2005 and not 39/01/2005
is there a way to do it in just like in asp (add date)
>> >>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.my
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
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 fr
[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. http://www.
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
*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. http://www.mysql.
[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
Hi NG,
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
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 s
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.
Th
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
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
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 s
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...
http:/
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
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 date('F'
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 No
nce the beginning of the
"Unix Epoch" (# of secs since January 1, 1970 that is... Hey, time's
gotta start somewhere eh?)
Hope this helps clarify mktime(), strtotime() and date().
-TG
> -Original Message-
> From: Christopher Weaver [mailto:[EMAIL PROTECTED]
> Sent:
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:
* 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 w
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:[EM
panding on it.
-TG
> -Original Message-
> From: Christopher Weaver [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 30, 2004 9:19 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Date Manipulation
>
>
> I've looked at the date functions in the manual but can&
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 (
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 str
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
>
> $rsVJ->
I'm getting a:
Parse error: parse error, unexpected '%' in
/home/mysite/public_html/userpage.php on line 120
Fields('DATE_FORMAT(LstUpdate,'%m/%d/%Y')');
?>
Fields('DATE_FORMAT(InitOn,'%m/%d/%Y')');
?>
Fields('DATE_FORMAT(PostStart,'%m/%d/%Y')');
?>
Using this format /syntax
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.
You can also experiment with strtotime()... the catch will be the
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
me up with something 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
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 tha
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 alternatives - just because I'd like some
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:
the script outputs "-1", which then of course translates to 1969-12-31.
According to htt
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 whe
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 appears to be since it's not in the core PHP
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.
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
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 p
e any chance 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' wh
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/
--
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
won
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?
// current time at start of script
$before = strtotime("now");
//All your DB stuff
{
}
// current time at end of script
$after = strtotime("
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> $database_name = "CETechnology";
MT> $host = "server";
MT> $login = "username";
MT> $password = "password";
MT> $e
-- 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 etherne
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.
$ethernet_address = "00:01:93:8e:69:50";
$db_connect = mysql_connect( $host, $login, $password ) or die
(mysql_error());
$db_select = mysql_select_db($database_name) or die (mysql_
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
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 php
[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 d
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]
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
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 com
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 para
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 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 stu
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 c
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
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 S
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
* 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
> > > object"what exactly is a "date object"?
> > >
> > > This is exactly what is written " The function takes a date object as
> its
>
> From: "Ryan A" <[EMAIL PROTECTED]>
>
> > A bit confused, I downloaded a function and it says it takes a "date
> > object"what 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 th
From: "Ryan A" <[EMAIL PROTECTED]>
> A bit confused, I downloaded a function and it says it takes a "date
> object"what 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,
Hi,
A bit confused, I downloaded a function and it says it takes a "date
object"what 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", "mkti
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 sq
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:
> and the result i get is: object18/03/04
> any help would
i am new to php, i am trying to call the date function this way:
and the result i get is: object18/03/04
any help would be appreciated
I recommend the manual and google
http://www.php.net/manual/en/ref.datetime.php
http://www.php.net/date
http://www.php.net/manual/en/function.time.php
http
hello all,
i am new to php, i am trying to call the date function this way:
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
alternative email: [EMAIL PROTE
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 u
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
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
didn’t work. Can you plea
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
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 aft
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 dd-mm
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 forma
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.
J
[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 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
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 PROT
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
Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
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)-strtot
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
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 r
try
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:
What is the minimum version for this to work? Or is this my prob
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:
What is the minimum version for this to work? Or is this my problem? It echoes "1" in
the html.
http://www.php.net/manual/en/function.date.php
John
--
PHP Ge
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 easi
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:
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 PROT
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?
take a look at these functions
http://www.php.net/mktime
ht
" + lmonth + ", " + date + " " + year);
// write date to screen
document.write(todaysdate);
// end hiding-->
Hope this helps.
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]
Sent: Thursday, 11 Decem
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?
take a look at these functions
http://www.php.net/mktime
ht
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 unsubscri
[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-1
',date('l, F
j',$theday),'';
}
?>
Where $i <= 31 is the number of days you want looped
HTH
Jay
-Original Message-
From: Pablo Zorzoli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Date Listi
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"
> 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
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
funct
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
> --
>
* 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 answer, you're almost certainly asking the
wrong question. -- Rasmus
--- Scott Fletcher <[EMAIL PROTECTED]> wrote:
> 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--
Either this is a bug
401 - 500 of 1067 matches
Mail list logo