Re: MS SQL and Date Fields

From: Date: Fri, 16 Feb 2001 01:30:26 +0000
Subject: Re: MS SQL and Date Fields
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40050@lists.php.net to get a copy of this message
MS SQL almost for sure has a way to do this in your SQL, which will be faster than PHP's mktime() anyway. You'll have to read the MS SQL docs to find it, though... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: "James Crowley" <james@vbweb.co.uk> Newsgroups: php.general Sent: Thursday, February 15, 2001 1:31 PM Subject: [PHP] MS SQL and Date Fields > Hi, > I have a problem (!). I am using an MS SQL db, which returns a date field. > How can I format this using the date() function? ie how can I convert the > date to a Unix timestamp? I know you can use the mktime() function, but in > which case, how can I get the day/month/year etc from the ms sql date > field?! > > Many thanks, > > - James > > Editor, VB Web > ================== > Web - http://www.vbweb.co.uk > Email - james@vbweb.co.uk > ICQ# - 60612011 > ================== > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#40050) next »