u can save timestamp in table and u can change date format easily.
like below : -
Example : -
$jobcode = 1; // ( Electrical = 1 IT/Computer = 2 Contruction =3)
$username ='BB'; // put your username.
$timestamp=time();
$varDate = date("dmY",$timestamp);
$finalCode = $jobcode.$varDate.$username;
hope it will help u.
--- In [email protected], Brian E Boothe <[EMAIL PROTECTED]> wrote:
>
> Hi all :
> Im looking for a way to take the date in the following Format
> 2/3/2008 and make it appear in another box as 232008 now if a user is
> logged in it takes there initails
> and puts it at the end of that number so it would be 232008BB for me '
> now at the beginning of that number would be the job code
> Job codes are
> Electrical = 1 IT/Computer = 2 Contruction =3
> so when i enter in a job it gets 2232008BB can anyone give me any
> examples of how to accomplish this : thanks
>