alvin567 Posted June 1, 2012 Share Posted June 1, 2012 How do I cast a date type of '2010-02-30' so that it is recognizable my mssql? Link to comment https://forums.phpfreaks.com/topic/263462-mssql-help-needed/ Share on other sites More sharing options...
alvin567 Posted June 4, 2012 Author Share Posted June 4, 2012 How do I case 100 to 100.00 type in php? Link to comment https://forums.phpfreaks.com/topic/263462-mssql-help-needed/#findComment-1351035 Share on other sites More sharing options...
kicken Posted June 5, 2012 Share Posted June 5, 2012 Use number_format to add zero's to a number in PHP. As for the date, '2010-02-30' is an invalid date. You'd have to decide what you want it to be first, then change it to that date. Link to comment https://forums.phpfreaks.com/topic/263462-mssql-help-needed/#findComment-1351313 Share on other sites More sharing options...
Adam Posted June 13, 2012 Share Posted June 13, 2012 "YYYY-MM-DD" is the correct format for T-SQL dates. Link to comment https://forums.phpfreaks.com/topic/263462-mssql-help-needed/#findComment-1353600 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.