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" [EMAIL PROTECTED]
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 - [EMAIL PROTECTED]
ICQ# - 60612011
==
--
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 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]