I have a module I am working on that revolves around our Call of Duty clan. I have made a member profile page that in two of the cells I want to display Time in Service (TIS), and Time in Grade (TIG).
TIS is time served from date of enlistment which in the roster_members table is enlistment_dt to todays date or Getdate() and properly formated into something like 1 year 3 months.
TIG is time served from last promotion which in the roster_members is promotion_dt to GetDate() and formated to 6 months or whatever length of time from the members last promotion.
The code to display TIS is as follows:
<td width=\"12%\" align=\"right\">"
. " <b><font color=\"#660033\">Time in Service:</font></b>"
. " </td>"
. " <td width=\"15%\" colspan=\"2\">"
. " <p class=\"content\">$info[tis]"
. " </td>"
Displaying TIG is identical to TIS.
How could I get this done? With a function?
If anybody has any good ideas or could lead me in the right direction I would appreciate it.