Announcement

Collapse
No announcement yet.

Date of the day

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Date of the day

    Hello,

    I would like to stock the day date in a field of a record.
    But how can i get this date?
    And when do i put it : {date_MAJ}= ???

    Best regards,
    Olivier

  • #2
    {date_MAJ} = date();

    Best regards: - Reinhard -

    I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

    Comment


    • #3
      Hello Reinhard,
      It's OK, i used a bad format at beggining.
      Best regards,
      Olivier

      Comment


      • #4
        Hello Reinhard,
        In fact I have this error message when i valide the transaction:
        Erreur
        date() expects at least 1 parameter, 0 given

        But the field is recorded with the date of the day...
        Best regards,
        Olivier

        Comment


        • #5
          Yes, the date syntax require a format. See: http://php.net/manual/en/function.date.php

          But you can easily set de date to today. If you need to display, then set the default value of that field to systemdate. IF you need to apply at update/insert time you can do that in the edit-fields (left menu). You don't need php/events for this.
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment

          Working...
          X