Re: [PHP] Date function

2002-01-28 Thread sundogcurt
Is this date stored in mysql by anychance? [EMAIL PROTECTED] wrote: >Hi All, > >Is there any function in PHP4.X or in Oracle8i to calculate number of >Business days ( excluding Saturday and Sunday) between two given dates? > >Thanks in advance. >Sridhar. > >-Original Message- >From: qar

[PHP] Date function

2002-01-28 Thread Sridhar Moparthy
Hi All, Is there any function in PHP4.X or in Oracle8i to calculate number of Business days ( excluding Saturday and Sunday) between two given dates? Thanks in advance. Sridhar. -Original Message- From: qartis [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 1:38 PM To: [EMAIL

[PHP] date and time triggerring

2002-01-25 Thread Michael P. Carel
Hi there, Is there any one who could give me an idea regarding the date and time triggering PHP script. This date and time script whould gives an output if ever it hit "Jan 1" and print's it's year. Any idea? Thanks in advance, and also to all who keeps on helping a newbie like me. Regards,

[PHP] Date

2002-01-08 Thread aurelio
hi, how i make to catch a future date, with this formatting 09/01/2002.??? thanks, Aurélio Sabino

RE: [PHP] Date aritmetic

2002-01-02 Thread Martin Towell
o:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:20 PM To: Carlos Fernando Scheidecker Antunes Cc: PHP-GENERAL Subject: Re: [PHP] Date aritmetic Not mentioning that you could've taken a look at http://www.php.net/manual/en/ref.datetime.php yourself, here goes: $days_diff=(mktime(0,0,0,$mon

RE: [PHP] Date aritmetic

2002-01-02 Thread Martin Towell
-GENERAL Subject: [PHP] Date aritmetic Importance: High Hello all, I would like to know if anyone could help me with the following issue: I have 6 variables, two holds a day, others the month and the last ones the year. They are entered through drop-down-menus where the user selects day, month and

Re: [PHP] Date aritmetic

2002-01-02 Thread Bogdan Stancescu
Well, actually $days_diff=(mktime(0,0,0,$month2,$day2,$year2)-mktime(0,0,0,$month1,$day1,$year1))/86400; but you probably got that... :-) Bogdan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

Re: [PHP] Date aritmetic

2002-01-02 Thread Bogdan Stancescu
Not mentioning that you could've taken a look at http://www.php.net/manual/en/ref.datetime.php yourself, here goes: $days_diff=(mktime(0,0,0,$month2,$day2,$year2)-mktime(0,0,0,$month2,$day2,$year2))/86400; Bogdan Carlos Fernando Scheidecker Antunes wrote: > Hello all, > > I would like to know

[PHP] Date aritmetic

2002-01-02 Thread Carlos Fernando Scheidecker Antunes
Hello all, I would like to know if anyone could help me with the following issue: I have 6 variables, two holds a day, others the month and the last ones the year. They are entered through drop-down-menus where the user selects day, month and year for each date. I would like to know the diffe

[PHP] Date Formatting/Reading

2001-12-13 Thread PHPGalaxy.com
Hi! =) I'm doing a website that will be using a pay-per-month membership program. There's a field for 'lastpaid' that holds the date the last paid (sorry to state the obvious). My questions are these: 1) What would be the best way to format it so PHP can see if it's been 30 days since it was last

Re: [PHP] Date

2001-12-12 Thread JSheble
you could use the mySQL DATE_FORMAT() directly in your query: SELECT DATE_FORMAT( mydatefield, '%m/%d/%Y ' ) as d_mydatefield from MyTable At 11:23 PM 12/12/2001 +0100, you wrote: >Hi to all, > >I'm using this to get date from mySQL database: > >.. >$p_datum = $row["mydatefield"]; >$mydate = get

Re: [PHP] Date

2001-12-12 Thread Mehmet Kamil ERISEN
what's your raw data. I mean, what is the value of $row["mydatafield"]; --- Max <[EMAIL PROTECTED]> wrote: > Hi to all, > > I'm using this to get date from mySQL database: > > ... > $p_datum = $row["mydatefield"]; > $mydate = getdate($p_datum); > $month = $mydate['month']; > $mday = $mydate['

[PHP] Date

2001-12-12 Thread Max
Hi to all, I'm using this to get date from mySQL database: ... $p_datum = $row["mydatefield"]; $mydate = getdate($p_datum); $month = $mydate['month']; $mday = $mydate['mday']; $year = $mydate['year']; ..but I allways get 1/1/1970. Can anybody help me? -- PHP General Mailing List (http://

Re: [PHP] Date

2001-12-11 Thread Kevin Stone
- Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "PHP Lists" <[EMAIL PROTECTED]> Sent: Tuesday, December 11, 2001 3:43 PM Subject: [PHP] Date Try instead.. echo "Last Modified: " . date("j F Y H:i", filetime($y

[PHP] Date

2001-12-11 Thread Brian V Bonini
Why is this: returning this: Last Modified: December 31, 1969, 7:00 pm from this: -rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] Date formatting

2001-12-11 Thread Miles Thompson
Here, play with this. dtAuctionStart is a MySQL date field, so substitute your own connection and var. Have fun - Miles Thompson Some messing about with dates = "; echo date ("Y-m-d", $dtAuctionStart ), ""; //$strDate = $dtAuctionStart ; echo "dtAuctionStart : $dt

Re: [PHP] Date formatting

2001-12-11 Thread Steve Cayford
On Monday, December 10, 2001, at 09:35 PM, phantom wrote: > What would be an easy what to format a date value into month day year?? > I want to specially display a date stored in mysql in date format > -MM-DD > > The manual says: string date (string format, int [timestamp]) > > I tried $For

Re: [PHP] Date formatting

2001-12-11 Thread Kevin Stone
OTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 8:35 PM Subject: [PHP] Date formatting > What would be an easy what to format a date value into month day year?? > I want to specially display a date stored in mysql in date format > -MM-DD > > The manual

[PHP] Date formatting

2001-12-11 Thread phantom
What would be an easy what to format a date value into month day year?? I want to specially display a date stored in mysql in date format -MM-DD The manual says: string date (string format, int [timestamp]) I tried $FormattedDate = date("F y, Y",${StoredDate}) 1999-04-15 spit out December 3

RE: [PHP] Date

2001-12-11 Thread Jon Haworth
-Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: 11 December 2001 14:35 To: PHP Lists Subject: [PHP] Date Why is this: returning this: Last Modified: December 31, 1969, 7:00 pm from this: -rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php Anyone? -

[PHP] Date

2001-12-11 Thread Brian V Bonini
Why is this: returning this: Last Modified: December 31, 1969, 7:00 pm from this: -rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

[PHP] Date Problem

2001-11-20 Thread MindHunter
Hi, I am reading a date from an input in format 'DD-MM-' ex. 10-11-2001. Now I want to add 3 months to the date. I have tested mktime and strftime etc and no matter what I do I get the year as 1970. (Systemdate works fine). How would I go about adding 3 months to a date in that format? Th

[PHP] DATE Questions

2001-11-20 Thread Oosten, Sjoerd van
Hello, I'm working on a project planning system and what i want to do is making a sort of table structure with an overview form today till a month later. All the projects that are between these dates must be viewed. Right now i have the following questions: - How can i determine how much days

RE: [PHP] date conversion and calculation problem...

2001-11-12 Thread Martin Towell
te1[0] ); Martin T -Original Message- From: py [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] date conversion and calculation problem... Hello, I have 2 date string like this $t1 = "2001-11-12 17:30:10"; $t2 = "2001

RE: [PHP] date conversion and calculation problem...

2001-11-12 Thread Jason Murray
> I have 2 date string like this > > $t1 = "2001-11-12 17:30:10"; > $t2 = "2001-11-12 17:15:32"; > > I need to substracts the number of seconds from $t2 from $t1 First, convert them to unix time format: So: (apologies for stuff that doesn't work, I've coded this in the email and not teste

[PHP] date conversion and calculation problem...

2001-11-12 Thread py
Hello, I have 2 date string like this $t1 = "2001-11-12 17:30:10"; $t2 = "2001-11-12 17:15:32"; I need to substracts the number of seconds from $t2 from $t1 (because after I have another script thats converts the number of seconds to minutes, hours or days if necessary) I tried: (but it does n

Re: [PHP] Date help (no not that kind)

2001-11-11 Thread DL Neil
Hi Sundog, Can help you with dates (but no, if you want that kind you'll definitely not be wanting my advice...) - Original Message - > I am trying to determine if todays date ($today) is within a week > ($startcheck) of a given date ($dob). This is what I have so far. > > $todaydate = (

[PHP] Date help (no not that kind)

2001-11-10 Thread sundogcurt
I am trying to determine if todays date ($today) is within a week ($startcheck) of a given date ($dob). This is what I have so far. $todaydate = (date("Y-d-m")); $today = strtotime($todaydate); // $today prior to strtotime = 2001-10-11 $startcheck = strtotime(2001-08-11); $dob = strtotime(2001-1

[PHP] Date problems

2001-11-02 Thread Raymond C. Rodgers
Hi, I'm having a bit of a weird problem with the date() function. I am using PostgreSQL to store guestbook entries and updating and displaying them with Apache 1.3x and PHP4 on OpenBSD. The date information is being stored correctly in PostgreSQL, but I'm using the date() function to format t

[PHP] date problem

2001-10-30 Thread Steve Tsai
For reference: OS: OpenBSD 2.9 Web Server: Apache1.3.19 PHP Version: 4.0.6 My problem is that date() and all the other time functions return GMT instead of localtime. system("date") returns the correct localtime. Those functions used to return localtime since GMT. The problem seems to have s

[PHP] DATE FORMAT ISSUES

2001-10-22 Thread Beeman
I have inserted the date into MySQL using now() in the query. However, when I retrieve the using MySQL_Date_Format in the query the time is always wrong. on the other hand, if I format the date using Date() in PHP it always makes the date DEC 31 1969 at 700PM. Please Help -- PHP General Mailin

[PHP] Date->TimeStamp

2001-10-19 Thread Daniel Harik
Hello guys I store date in my dbase in folliwing format 2001-08-27 22:24:07, how can i convert this to timestamp and do manipulation Thank You very muc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
Thankyou, that works fine. -- Chip "Jack Dempsey" <[EMAIL PROTECTED]> on 09/12/2001 12:03:20 AM Internet mail from: To: <[EMAIL PROTECTED]> cc: <[EMAIL PROTECTED]> Subject: RE: [PHP] date/time of current page > I'm not sure what you mean, but h

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
> I'm not sure what you mean, but here is what I have tried - try this: jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
"Michael Geier, CDM Systems Admin" <[EMAIL PROTECTED]> on 09/11/2001 11:46:50 PM Internet mail from: To: "Jack Dempsey" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject: RE: [PHP] date/time

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
"Jack Dempsey" <[EMAIL PROTECTED]> on 09/11/2001 11:42:07 PM Internet mail from: To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject: RE: [PHP] date/time of current page have you tried parsing out the name from $PHP_SELF? I would think that php wouldn&

RE: [PHP] date/time of current page

2001-09-11 Thread Michael Geier, CDM Systems Admin
document.write('some text ' + document.lastmodified + ' some other text.'); -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 4:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] date/time of current p

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
ember 11, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: [PHP] date/time of current page I want to put, into a footer include file, the last modified date of the current file being viewed. I have the following code that works when I hard code the file name - But of course that won't work as a f

[PHP] date/time of current page

2001-09-11 Thread chip . wiegand
I want to put, into a footer include file, the last modified date of the current file being viewed. I have the following code that works when I hard code the file name - But of course that won't work as a footer for a site with over two hundred pages. What is the parameter for the current page?

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread
From: Paul McGee <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 12:45:49PM -0400 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] Date formatting in PHP 3.0 > Thanks, I knew it was something stupid! > > However, the $dy = date ("D", $row[0]) doesn't work.

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread Paul McGee
hu, Aug 30, 2001 at 12:13:21PM -0400 > Message-ID: <[EMAIL PROTECTED]> > Subject: [PHP] Date formatting in PHP 3.0 > > > I'm looping through a MSQL db pulling out the dates where I would like to > > display the date and then the day of the week. The problem is that ev

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread
From: Paul McGee <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 12:13:21PM -0400 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] Date formatting in PHP 3.0 > I'm looping through a MSQL db pulling out the dates where I would like to > display the date and then the day of th

[PHP] Date formatting in PHP 3.0

2001-08-30 Thread Paul McGee
I'm looping through a MSQL db pulling out the dates where I would like to display the date and then the day of the week. The problem is that every date returns the same day of the week, Wed. I checked the documentation and it doesn't say anything about the expression only being executed once duri

Re: [PHP] Date Functions

2001-08-20 Thread Renze Munnik
On Mon, Aug 20, 2001 at 12:12:15PM +0100, Peter Allum wrote: > I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that > bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year > and 11 months ahead of the 1st date and another that is 2 years ahead of the >

[PHP] Date Functions

2001-08-20 Thread Peter Allum
I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year and 11 months ahead of the 1st date and another that is 2 years ahead of the 1st date. Any Ideas, I have seen lots of scripts for adding days but

Re: [PHP] Date function

2001-08-15 Thread Don Read
On 16-Aug-2001 David Robley wrote: > On Thu, 16 Aug 2001 00:38, Mike Mike wrote: >> Hello, >> I'm pulling a date out of MySQL as 2001-10-18. >> How do I make it print October 18 in php? >> Thanks much >> --Mike > > You could use the Mysql date functions to format it for you. If your date > fi

Re: [PHP] Date function

2001-08-15 Thread David Robley
On Thu, 16 Aug 2001 00:38, Mike Mike wrote: > Hello, > I'm pulling a date out of MySQL as 2001-10-18. > How do I make it print October 18 in php? > Thanks much > --Mike You could use the Mysql date functions to format it for you. If your date field is called date and is a date type: SELECT CO

Re: [PHP] Date function

2001-08-15 Thread Brian C. Doyle
I use $date = explode("-", $msql_date); $date = date("d F",mktime(0,0,0,$date[1],$date[2],$date[0])); At 08:08 AM 8/15/01 -0700, Mike Mike wrote: >Hello, >I'm pulling a date out of MySQL as 2001-10-18. >How do I make it print October 18 in php? >Thanks much > --Mike > >

Re: [PHP] Date function

2001-08-15 Thread ReDucTor
- Original Message - From: "Mike Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 16, 2001 1:08 AM Subject: [PHP] Date function > Hello, > I'm pulling a date out of MySQL as 2001-10-18. > How do I make it print October

[PHP] Date function

2001-08-15 Thread Mike Mike
Hello, I'm pulling a date out of MySQL as 2001-10-18. How do I make it print October 18 in php? Thanks much --Mike __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP Gene

Re: [PHP] php date bug ?

2001-08-03 Thread Tom Carter
ks of the year where new york is 6 hours behing UK, and the rest its only 5. HTH - Original Message - From: "Johnny Nguyen" <[EMAIL PROTECTED]> To: "Steve Brett" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 03, 2001 4:25 PM Subject: RE

Re: [PHP] php date bug ?

2001-08-03 Thread Richard Lynch
> Just to throw one more unwelcome cat amongst the pigeons.. > > Different countries/time zones have summer time, I think almost all > countries do, but the actual days when they switch vary from country (yes I > know, bloody nusiance isn't it?) > > I know as an example of this theres about three

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
tt [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 8:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] php date bug ? as far as i know adding 1 day to the day value of the timestamp will increment the month as well. adding i day to july 31st will give august 1st. if you need it i'll s

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
ement. regards, Johnny Nguyen -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP] php date bug ? hi, i've got a calendar and i produce a month sort of outlook / filofax view that shows the user's app

Re: [PHP] php date

2001-07-28 Thread Michael Hall
Do you mean something like: $date = date("Y-m-d"); echo $date; Mick On Sat, 28 Jul 2001, colin wrote: > can anyone give me a work around for a PHP date function when used in > conjunction with a PHP include. > The code inside the include is printed but I

[PHP] php date

2001-07-27 Thread colin
can anyone give me a work around for a PHP date function when used in conjunction with a PHP include. The code inside the include is printed but I do not know how to echo the date as the document has already been parsed once. Any help would be appreciated. Please reply to [EMAIL PROTECTED] many

[PHP] Date/Time Query Help

2001-07-24 Thread Shrout, Ryan
Okay, I need help with this one: I have a table with a column in the MySQL DATETIME format. (2001-07-24 13:02:02) I need a MySQL query that will select all the entries in it made within the last hour. I tried this, but it is not working correctly, what am I doing wrong? SELECT *

RE: [PHP] date HELP !!!!!

2001-07-23 Thread Andrew Braund
28/2003" is 28 Feb 2003 month is 2 End of month is 29 test date "2/29/2003" is 01 Mar 2003 month is 3 End of month is 31 test date "2/28/2004" is 28 Feb 2004 month is 2 End of month is 29 test date "2/29/2004" is 29 Feb 2004 month is 2 End of month is 29 last day t

Re: [PHP] date HELP !!!!!

2001-07-23 Thread James Holloway
Better still, use the date("t"); to find out how many days are in the given month. This part of the date function is a blessing, given the varying days in months, and the fact that we've a leap year every four years. James "Daniel Rezny" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">ne

Re: [PHP] date HELP !!!!!

2001-07-23 Thread Henrik Hansen
cho "last day"; or something else :) > - Original Message - > From: Yamin Prabudy <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 23, 2001 5:27 PM > Subject: [PHP] date HELP ! > >> hi, >> how do i chec

Re: [PHP] date HELP !!!!!

2001-07-23 Thread Daniel Rezny
Hello Yamin, Monday, July 23, 2001, 9:27:46 AM, you wrote: YP> hi, YP> how do i check that the current date is the end of month YP> Thanks in Advance If you want to check how long is current month and use this value later you can use this: $month=("m"); //can be like this depend on if you s

Re: [PHP] date HELP !!!!!

2001-07-23 Thread ReDucTor
$todaydate = date("m"); $tomorrowdate = date("m",time() + 86400); if($todaydate != $tomorrowdate){ echo "Tomorrow is a new month"; } - Original Message - From: Yamin Prabudy <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July

[PHP] date HELP !!!!!

2001-07-23 Thread Yamin Prabudy
hi, how do i check that the current date is the end of month Thanks in Advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] date

2001-07-23 Thread Yamin Prabudy
Hi, how do i check that the current date is the end of month ? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] date

2001-07-19 Thread AJDIN BRANDIC
What is this "On Mon, 4 Jan 1999, Duy B wrote:" On Mon, 4 Jan 1999, Duy B wrote: > Hi all, > I have a view containing a char value. I use select to_date(thoigian,'yy-mm-dd >hh24:mi:ss') from this view. But i can't see the time, it's only appear as >"DD-MON-YY". Anybody could show me how to se

[PHP] date

2001-07-19 Thread Duy B
Hi all, I have a view containing a char value. I use select to_date(thoigian,'yy-mm-dd hh24:mi:ss') from this view. But i can't see the time, it's only appear as "DD-MON-YY". Anybody could show me how to see the time. Thanks you in advance. Best regards, BaDu

RE: [PHP] date change for unix platforms on sept 9th

2001-07-11 Thread Don Read
On 11-Jul-01 scott [gts] wrote: > Has anybody heard if this will affect PHP in any way? > > Copied from the "Unix Guru mailing list": > > -=-=-=-=-=-=-=-=-=-=-=- > The unix time() value becomes > 10 digits for the first time on > Sun Sep 9 01:46:40 2001 > > For the first time in modern >

[PHP] date change for unix platforms on sept 9th

2001-07-11 Thread scott [gts]
Has anybody heard if this will affect PHP in any way? Copied from the "Unix Guru mailing list": -=-=-=-=-=-=-=-=-=-=-=- The unix time() value becomes 10 digits for the first time on Sun Sep 9 01:46:40 2001 For the first time in modern computer history, the timestamp will be something besid

Re: [PHP] date -> day

2001-06-26 Thread David Robley
On Tue, 26 Jun 2001 00:28, Tyler Longren wrote: > Hello, > > I have something like this: > $Month = "6"; > $Year = "2001"; > $Date = "1"; > > Is there any relatively simple way to get the day out of that? For > example, the day for 6-1-2001 would be Friday. > > Thanks, > Tyler If that info comes

Re: [PHP] date -> day

2001-06-26 Thread Gyozo Papp
date('l', mktime(0,0,0, $Month, $Day, $Year)); - Original Message - From: "Tyler Longren" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: 2001. június 25. 16:58 Subject: [PHP] date -> day > Hello, > > I hav

Re: [PHP] date -> day

2001-06-26 Thread infoz
ECTED]> Sent: Monday, June 25, 2001 10:58 AM Subject: [PHP] date -> day > Hello, > > I have something like this: > $Month = "6"; > $Year = "2001"; > $Date = "1"; > > Is there any relatively simple way to get the day out of that? For ex

Re: [PHP] date -> day

2001-06-25 Thread Philip Olson
mktime can be pretty useful : $year = 2001; $month = 6; $day = 1; print date('l',mktime(0,0,0,$month,$day,$year)); as it creates a unix timestamp, and date() appreciates that. Regards, Philip On Mon, 25 Jun 2001, Tyler Longren wrote: > Hello, > > I have something like this: >

[PHP] date -> day

2001-06-25 Thread Tyler Longren
Hello, I have something like this: $Month = "6"; $Year = "2001"; $Date = "1"; Is there any relatively simple way to get the day out of that? For example, the day for 6-1-2001 would be Friday. Thanks, Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

Re: [PHP] Date (Year) .. adding..

2001-05-23 Thread Rob Hardowa
=0; > $year = date("Y"); > while($x < 20) > { > $year = $year+1; > print($year . "\n"); > $x++; > } > ?> > > Try that. > > Tyler > > > -Original Message- > > From: Jason Caldwell [mailto:[EMAIL PROTECT

Re: [PHP] Date (Year) .. adding..

2001-05-23 Thread mheumann
Hi Jason, You might want to put the '+$x' outside the date(). $year = date("Y") + $x; Greetings, Michael. > I'm trying to figure out how to add to the year: > > for($x=0; $x<20; $x++) > { > $year = date("Y" + $x); > print($year . "\n"); > } > > I've tried several variations on the a

Re: [PHP] Date (Year) .. adding..

2001-05-22 Thread David Robley
On Wed, 23 May 2001 13:49, Jason Caldwell wrote: > I'm trying to figure out how to add to the year: > > for($x=0; $x<20; $x++) > { > $year = date("Y" + $x); > print($year . "\n"); > } > > I've tried several variations on the above and cannot get the year to > come out. > > Any suggestions?

RE: [PHP] Date (Year) .. adding..

2001-05-22 Thread Tyler Longren
Try that. Tyler > -Original Message- > From: Jason Caldwell [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 22, 2001 11:20 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Date (Year) .. adding.. > > > I'm trying to figure out how to add to the

[PHP] Date (Year) .. adding..

2001-05-22 Thread Jason Caldwell
I'm trying to figure out how to add to the year: for($x=0; $x<20; $x++) { $year = date("Y" + $x); print($year . "\n"); } I've tried several variations on the above and cannot get the year to come out. Any suggestions? Thanks Jason -- PHP General Mailing List (http://www.php.net/) T

[PHP] Date and Time Functions like MySQL?

2001-05-18 Thread Chris Lee
Hi, Does anyone implement Date and Time Functions for PHP like MySQL? http://www.mysql.com/doc/D/a/Date_and_time_functions.html I know there is already have functions for PHP, however it cannot handle year expect it was between 1902 and 2037. http://www.php.net/manual/en/ref.datetime.php Regar

RE: [PHP] Date & Time Formatting ??

2001-05-08 Thread Don Read
On 08-May-01 Jack Sasportas wrote: > > The Goal is to have the Time stamp looking like 12:24 (military time OK) > > and the date 05-08-2001 or even 05-08-01. > > The MySQL db looks like so: > date -00-00 > time 00:00:00 > > I don't seem to really be able to vary the DB form

RE: [PHP] Date & Time Formatting ??

2001-05-08 Thread Jon Haworth
2001 17:46 To: php Subject: Re: [PHP] Date & Time Formatting ?? Here is what I am trying to do, but I get the wrong date: $t_data_array[1]=date("m/d/y",mysql_result($db_result,$db_record,'date')); Then I simply print the value in the arraythis date instead of 05/08/0

Re: [PHP] Date & Time Formatting ??

2001-05-08 Thread Jack Sasportas
e info (there are loads of examples in > the user notes). > > HTH > Jon > > -Original Message- > From: Jack Sasportas [mailto:[EMAIL PROTECTED]] > Sent: 08 May 2001 17:28 > To: php > Subject: [PHP] Date & Time Formatting ?? > > OK I have read many examp

RE: [PHP] Date & Time Formatting ??

2001-05-08 Thread Jon Haworth
are loads of examples in the user notes). HTH Jon -Original Message- From: Jack Sasportas [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 17:28 To: php Subject: [PHP] Date & Time Formatting ?? OK I have read many examples, old posts etc, but I am looking for a detailed explanation as to

[PHP] Date & Time Formatting ??

2001-05-08 Thread Jack Sasportas
OK I have read many examples, old posts etc, but I am looking for a detailed explanation as to how to do this. First is when I write to a mysql database using the now() function, the time stamp looks like so when I display the time back to the browser. 204:24:06 ( This should have been 12:24pm

Re: [PHP] date calculation

2001-05-04 Thread James Holloway
Gary, Yes. Check the manual for mktime(); and getdate(); http://www.php.net/quickref.php James > Is there a way to do calculations with dates? Preferably ignoring weekends. > > Thanks, Gary > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] >

[PHP] date calculation

2001-05-04 Thread Gary
Is there a way to do calculations with dates? Preferably ignoring weekends. Thanks, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] date list

2001-05-02 Thread James Holloway
Jon, Try this ... I know the code could be trimmed down, but I wrote it this way for ease of reading. "; echo "$month/$day/$year"; echo "\n"; $startperiod = $startperiod + 86400; } ?> Basically just uses mktime() and getdate() The 86400 is the number of seconds in the day, and the opti

Re: [PHP] date list

2001-05-01 Thread Chris Fry
uot; <[EMAIL PROTECTED]> > Cc: "PHP List" <[EMAIL PROTECTED]> > Sent: Wednesday, May 02, 2001 3:06 AM > Subject: Re: [PHP] date list > > > Jon, > > > > Just had to do almost exactly this - here's one solution. The tricky bit > was > > g

Re: [PHP] date list

2001-05-01 Thread Tomasz Abramowicz
ahem $daysinmonth = date('t'); - Original Message - From: "Chris Fry" <[EMAIL PROTECTED]> To: "Jon Rosenberg" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 3:06 AM Subject: Re: [PHP] date lis

Re: [PHP] date list

2001-05-01 Thread Chris Fry
Jon, Just had to do almost exactly this - here's one solution. The tricky bit was getting the number of days in the month - you have to look at next month! This generates a list for 12 months starting with the current month and outputs display stuff as well. In our scenario this is passed to a s

[PHP] date list

2001-05-01 Thread Jon Rosenberg
I need to make a select list for a web page in the following format: 01/01/01-01/07/01 01/08/01-01/14/01 01/15/01-01/21/01 etc etc till the end of 2002 and further in the future eventually I'd like to make PHP generate this for me so I don't have to handcode it for each year in the future. I've

RE: [PHP] date add more 7 days, help needed.

2001-04-23 Thread Maxim Maletsky
PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 11:27 PM To: [EMAIL PROTECTED] Subject: [PHP] date add more 7 days, help needed. Hi all I have variable that store date like this

[PHP] date add more 7 days, help needed.

2001-04-23 Thread Jacky
Hi all I have variable that store date like this : $First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb 1,2001) . I wanna do the loop 8 times that will add 7 more days to the begining date and keep adding it for 8 times. The looping thing is okay but I am not sure if I simply p

Re: [PHP] date plus 7 more days

2001-04-23 Thread David Robley
On Tue, 24 Apr 2001 23:44, Jacky wrote: > Hi all > I have variable that store date like this : > $First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb > 1,2001) . I wanna do the loop 8 times that will add 7 more days to the > begining date and keep adding it for 8 times. The loopi

[PHP] date plus 7 more days

2001-04-23 Thread Jacky
Hi all I have variable that store date like this : $First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb 1,2001) . I wanna do the loop 8 times that will add 7 more days to the begining date and keep adding it for 8 times. The looping thing is okay but I am not sure if I simply p

RE: [PHP] Date/Time Arithmetic

2001-04-11 Thread Boget, Chris
>Is it possible to do some arithmetic with time/date values in PHP? > for example, to calculate: >today + 1050 days. >today - 7 days. >etc. > I mean, does PHP have functions to perform these operations? $oneDay = 86400; // number of seconds in a day

[PHP] Date/Time Arithmetic

2001-04-11 Thread Erich Reimberg N.
Hello, Is it possible to do some arithmetic with time/date values in PHP? for example, to calculate: today + 1050 days. today - 7 days. etc. I mean, does PHP have functions to perform these operations? Thanks, Erich Reimberg. PS. I'm new to PHP, and I didn't find anything like t

Re: [PHP] date/time in wrong zone

2001-04-08 Thread Duke
; To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: April 9, 2001 12:00 AM Subject: [PHP] date/time in wrong zone >I'm using php 4.0.4pl1on a FreeBSD system. >When I use a php date/time function, it reports the time in GMT, however, I >have the date on my FreeBSD system set to EDT.

[PHP] date/time in wrong zone

2001-04-08 Thread Duke
I'm using php 4.0.4pl1on a FreeBSD system. When I use a php date/time function, it reports the time in GMT, however, I have the date on my FreeBSD system set to EDT. I can't figure out what the problem is here. The only thing I can think of is that when I compiled php, my system timezo

Re: [PHP] Date formatting

2001-04-06 Thread Joe Stump
You need a UNIX timestamp for the second argument in date() - thus you need to first convert your $even into a timestamp (number of seconds past 1970). That would work ... --Joe On Fri, Apr 06, 2001 at 01:13:59PM +0100, Matt Davis wrote: > Hi I am trying to format a date extracted from my DB.

<    5   6   7   8   9   10   11   >