Register for our next webinar, 5 Keys to Unlock Storytelling in Your eLearning, where you'll learn how to unlock the magic of storytelling in your eLearning development to increase learner engagement and retention! Join Andrew Townsend, our Campaign Marketing Manager, on Thursday, December 3, 2020 at 11:00 AM MDT.

Be The First On Your Block to Rock Lectora® 21!


Apply for exclusive early access to the latest version of Lectora® Desktop v21. Seating is limited so apply now!

In need of help with your eLearning? Feel free to ask a question of the community! You can also visit our Knowledge Base or, if you're in need of immediate assistance, submit a case to our Customer Success team.

Showing current year in Text box

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

Comments

  • martinkmartink 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
  • ssnegssneg Community Member Posts: 1,466
    You'll need JavaScript to strip the year from the full date. Let me know if you need a sample.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!

Be The First On Your Block to Rock Lectora® 21!


Apply for exclusive early access to the latest version of Lectora® Desktop v21. Seating is limited so apply now!