Results 1 to 2 of 2

Thread: add code for today date in my php class/function

  1. #1
    Join Date
    Jul 2010
    Posts
    228
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default add code for today date in my php class/function

    Good day!

    I want to know what is the syntax for date(dd-mm-yyyy) and how can I insert it to my code:
    PHP Code:
    $Mail->Subject 'Preview/' $this->csvUploadPaymentDetails[0]['csvfilename']; 
    Sorry, because I'm not familiar with class and function.

    i want toe result is Preview/Filename/Date/

    Thank you so much

  2. #2
    Join Date
    Jul 2010
    Posts
    228
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    How can I add this code:

    PHP Code:
    $this->csvUploadPaymentDetails[0]['week_num'
    with this code:

    PHP Code:
    $Mail->Subject 'Preview/' $this->csvUploadPaymentDetails[0]['csvfilename'] .'/'.date('d-m-Y'); 
    to make the subject become:

    Preview/Filename/Date/Week No

    Thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •