Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<b>Current Date Time in PHP mssql2000</b>

Status
Not open for further replies.

happyIndian100

Programmer
Jul 20, 2003
66
US

How to get current date time to insert into mssql server 2000 database?

like from back end getdate() function, i want the current date time in PHP.

thanks in advance
 
I don't know MSSQL, but there might be a column type that creates the timestamp automatically ("NOW()");

As for PHP you should look at the date() functions and the formatting options for those values:
 
i want to insert datetime into mssql server2000 datetime field.

thanks
 
I would recommend the use of MySQL's date() function (documented here), but exactly how you would use it I do not know. I do not know the format of MSSQL's datetime type.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top