Re: [PHP-WIN] Convert string to date

2004-03-25 Thread trystano
Then were is the solution to my Data retrieval problem! :) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Convert string to date

2004-03-25 Thread Harpreet K. Singh
quot; <[EMAIL PROTECTED]> Sent: Tuesday, March 23, 2004 3:10 PM Subject: RE: [PHP-WIN] Convert string to date > With MS SQL server you can do something like this: > > select convert(char(10), expiration, 101) as > ... > order by convert(varchar, expiration, 112) > &

Re: [PHP-WIN] Convert string to date

2004-03-23 Thread Trystano
There are date functions that should allow you to manipulate and work with date's and their corresponding attributes. Check them out. For example, if you pass a date as a parameter to the 'mktime()' function you will get returned an integer value that represents the amount of seconds passed sin

RE: [PHP-WIN] Convert string to date

2004-03-23 Thread Svensson, B.A.T. (HKG)
With MS SQL server you can do something like this: select convert(char(10), expiration, 101) as ... order by convert(varchar, expiration, 112) 112 gives the date format as "mmdd", and that should solve your problem. -Original Message- From: Harpreet K. Singh To: 'Php-Windows ' Sen