Re: [PHP] Another date exercise

2009-08-19 Thread tedd
At 10:43 AM -0500 8/19/09, Shawn McKenzie wrote: > First stab at it. Of course it needs US date ordering (month day year). You can't do euro type dates or any other format because there is no way to tell the difference between 1/2/2009 (January) and 1/2/2009 (February): Guess you did

Re: [PHP] Another date exercise

2009-08-19 Thread Luke
2009/8/19 Shawn McKenzie > Shawn McKenzie wrote: > > tedd wrote: > >> At 3:40 PM +0530 8/17/09, kranthi wrote: > >>> dont you think http://in3.php.net/strtotime is a solution to your > >>> problem ? > >> No, it's not a solution to my problem -- I have he problem solved. > >> > >> I was just askin

Re: [PHP] Another date exercise

2009-08-19 Thread Shawn McKenzie
Shawn McKenzie wrote: > tedd wrote: >> At 3:40 PM +0530 8/17/09, kranthi wrote: >>> dont you think http://in3.php.net/strtotime is a solution to your >>> problem ? >> No, it's not a solution to my problem -- I have he problem solved. >> >> I was just asking if anyone wanted to submit their php solu

Re: [PHP] Another date exercise

2009-08-17 Thread Shawn McKenzie
tedd wrote: > At 3:40 PM +0530 8/17/09, kranthi wrote: >> dont you think http://in3.php.net/strtotime is a solution to your >> problem ? > > No, it's not a solution to my problem -- I have he problem solved. > > I was just asking if anyone wanted to submit their php solution. It was > only an exe

Re: [PHP] Another date exercise

2009-08-17 Thread Luke
2009/8/17 Luke > > > 2009/8/17 tedd > >> At 4:10 PM +0100 8/17/09, Luke wrote: >> >> What would be really cool is if someone wrote a PHP script that generates >>> some Javascript code that could do this. >>> >>> I mean while we're on the subject of complicating things ;) >>> >>> -- >>> Luke Sla

Re: [PHP] Another date exercise

2009-08-17 Thread Luke
2009/8/17 tedd > At 4:10 PM +0100 8/17/09, Luke wrote: > >> What would be really cool is if someone wrote a PHP script that generates >> some Javascript code that could do this. >> >> I mean while we're on the subject of complicating things ;) >> >> -- >> Luke Slater >> :O) >> > > While writing/c

Re: [PHP] Another date exercise

2009-08-17 Thread tedd
At 4:10 PM +0100 8/17/09, Luke wrote: What would be really cool is if someone wrote a PHP script that generates some Javascript code that could do this. I mean while we're on the subject of complicating things ;) -- Luke Slater :O) While writing/creating javascript from php can be done, that

Re: [PHP] Another date exercise

2009-08-17 Thread Luke
2009/8/17 tedd > At 4:22 PM -0400 8/16/09, Paul M Foster wrote: > >> On Sun, Aug 16, 2009 at 08:36:17AM +0100, Lester Caine wrote: >> -snip- >> > But as has been said, the real solution is a date picker. >> >> I *hate* date pickers. They slow down input. I can type 082309 >> faster than I can ev

Re: [PHP] Another date exercise

2009-08-17 Thread tedd
At 4:22 PM -0400 8/16/09, Paul M Foster wrote: On Sun, Aug 16, 2009 at 08:36:17AM +0100, Lester Caine wrote: -snip- > But as has been said, the real solution is a date picker. I *hate* date pickers. They slow down input. I can type 082309 faster than I can ever do it with a date picker. The dat

Re: [PHP] Another date exercise

2009-08-17 Thread tedd
At 3:40 PM +0530 8/17/09, kranthi wrote: dont you think http://in3.php.net/strtotime is a solution to your problem ? No, it's not a solution to my problem -- I have he problem solved. I was just asking if anyone wanted to submit their php solution. It was only an exercise. I know there are

Re: [PHP] Another date exercise

2009-08-17 Thread kranthi
dont you think http://in3.php.net/strtotime is a solution to your problem ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another date exercise

2009-08-16 Thread Ralph Deffke
i agree on date pickers and js is well use individual fields for day month and year, make month and year as drop down and u have no problem at all make live easier ralph "Paul M Foster" wrote in message news:20090816202217.gs2...@quillandmouse.com... > On Sun, Aug 16, 2009 at 08:36:17AM +

Re: [PHP] Another date exercise

2009-08-16 Thread Paul M Foster
On Sun, Aug 16, 2009 at 08:36:17AM +0100, Lester Caine wrote: > tedd wrote: >> Hi gang: >> >> Here's another exercise to consider. >> >> This is a date entry problem where the user can enter a date in various >> forms, but the return will be in a consistent format. >> >> For example, a user might

Re: [PHP] Another date exercise

2009-08-16 Thread Ashley Sheridan
On Sun, 2009-08-16 at 08:36 +0100, Lester Caine wrote: > tedd wrote: > > Hi gang: > > > > Here's another exercise to consider. > > > > This is a date entry problem where the user can enter a date in various > > forms, but the return will be in a consistent format. > > > > For example, a user mi

Re: [PHP] Another date exercise

2009-08-16 Thread Lester Caine
tedd wrote: Hi gang: Here's another exercise to consider. This is a date entry problem where the user can enter a date in various forms, but the return will be in a consistent format. For example, a user might enter a date in the form of: August 5, 2009 Aug 05 2009 Aug 5, 9 08/05/09 8-5-9 8

Re: [PHP] Another date exercise

2009-08-15 Thread Phpster
On Aug 15, 2009, at 3:57 PM, tedd wrote: Hi gang: Here's another exercise to consider. This is a date entry problem where the user can enter a date in various forms, but the return will be in a consistent format. For example, a user might enter a date in the form of: August 5, 2009 Aug