MS SQL and Date Fields
| From: | James Crowley | Date: | Thu, 15 Feb 2001 19:36:57 +0000 |
| Subject: | MS SQL and Date Fields | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39966@lists.php.net to get a copy of this message | ||
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
==================