Announcement

Collapse
No announcement yet.

Set a Default Datetime

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

  • Set a Default Datetime

    Hello!
    I'm trying to set a default Hour after the task is creating by using a custom Formula but it's not changing anything.
    Can someone help me?


    Click image for larger version

Name:	imagem.png
Views:	222
Size:	7.0 KB
ID:	86852Click image for larger version

Name:	imagem.png
Views:	198
Size:	10.2 KB
ID:	86853

  • #2
    of course it is not working because the function is not assigned to anything, try this instead:

    Code:
    $horas = 19;
    $minutos = 00;
    
    dateEnd = datetime\addHours(createdAt, $horas);
    dateEnd = datetime\addMinutes(createdAt, $minutos);​
    this code will set the dateEnd (due date) to createdAt + 19h

    Hope this helps.
    Thanks
    Last edited by rabii; 01-09-2023, 02:42 PM.
    Rabii
    Web Dev

    Comment

    Working...
    X