Menu

Help with Date/Time Stamp

Help
mondoux
2004-04-07
2004-08-18
  • mondoux

    mondoux - 2004-04-07

    I am still in need of sending the data/time to the database from a form in a hidden field. I have tried several variations of syntax with no results. I have asked this before but still need to know if anyone has the answer. The form generation work great but I need to have the date and time added to the database automatically when submitted. Without this the form is useless for my purpose.

    Does anyone know the exact syntax to use ?

     
    • Musawir Ali

      Musawir Ali - 2004-04-07

      well, you can order a paid customization. See the services page of the project website ( http://phpformgen.sourceforge.net ) for more info. Remember, most of the people posting here are users and not coders, so they might not be able to help you out with coding.

       
      • mondoux

        mondoux - 2004-04-07

        I understand that but there was a discussion where it was mentioned to enter in the hidden field the Date/Time Value but there was no reference to what that value was

         
    • C M

      C M - 2004-08-18

      Here's some examples of what I use:

      Source:
      $date = date("l jS of F Y h:i:s A");

      Output looks like:
      Monday 16th of August 2004 04:51:57 PM

      Source:
      $date = date("F jS Y");

      Output looks like:
      August 16th 2004

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.