Welcome Guest, Not a member yet? Register   Sign In
Calculate PATIENTS age based on two dates stored in TABLE using Codeigniter
#3

Code:
SELECT DATE_FORMAT(FROM_DAYS(DATEDIFF(now(),'yourDateofbirth')), '%Y')+0 AS dateBorn;
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Calculate PATIENTS age based on two dates stored in TABLE using Codeigniter - by InsiteFX - 09-16-2022, 12:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB