Showing current year in Text box

davem570816
davem570816 Community Member Posts: 6
Anyone have a quick fix to show the current year in a text box?

Comments

  • martink
    martink Community Member Posts: 16
    We use the following method to get the current date completely:



    Action: Change Contents

    Target: TextBox1

    Value: CurrentDate (predefined variable)



    Maybe there is an additional function within the Modify Variable action which helps you modifying the CurrentDate variable so you can get just the year like LEFT() or YEAR() in Excel?



    Best regards,

    Martin
  • ssneg
    ssneg Community Member Posts: 1,466 ☆ Roadie ☆
    You'll need JavaScript to strip the year from the full date. Let me know if you need a sample.