Welcome Guest, Not a member yet? Register   Sign In
Getting day, month and year apart from Db
#5

If you are obtaining your date from a database query, why not split your date with the query.  MySQL has date functions for this case.
Start here https://www.w3resource.com/mysql/date-an...nction.php

E.g. SELECT YEAR( '2009-05-19' ) AS yr -> will give 'yr' as 2009. Replace the date with the appropriate field.
Reply


Messages In This Thread
RE: Getting day, month and year apart from Db - by Mr Lister - 03-18-2018, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB