0

Formula for Date

I am trying to create a formula that inputs todays date in the format "MM.DD" in a text field. 

 

How do I do this?

3 replies

null
    • Nick
    • 4 yrs ago
    • Reported - view

    Something like this?

    ---

    let t := today();
    let mm := month(t);
    let dd := day(t);
    TextField := mm + "." + dd

    ---

    • SMoore
    • 4 yrs ago
    • Reported - view

    I can try that, but if the month is for example March, I would prefer it to display 03 instead of just 3. 

    • Nick
    • 4 yrs ago
    • Reported - view

    You are right, try this

    ---

    let t := today();
    TextField := format(t, "MM.DD")

    ---

Content aside

  • 4 yrs agoLast active
  • 3Replies
  • 1368Views