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? Quote 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? Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/263462-mssql-help-needed/#findComment-1353600 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.