I need to get the date from a SQL Server datetime, and then format the date. (i.e. 01-Jan-2000) I'm using PHP.
currently, SQL is returning 2009-02-13 22:00:00.000.
echo date('d-M-Y', strtotime($datetime_from_db));
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With