Skip to main content
Community site session details

Community site session details

Session Id : Yfns3S/IBxhcX+ACVaR8PZ
Power Apps - Building Power Apps
Unanswered

VARIABLE WITH TODAY DATE

Like (0) ShareShare
ReportReport
Posted on 20 May 2024 21:51:38 by 98

Hi I am trying to create a variable with today date, this is my formula:

 

Set(varCurrentDate,Date(Year(Today()),Month(Today()),1)), and when selecting the var to see what has inside it says "varCurrentDate = Blank" nothing is being stored, I am following the next video: https://www.youtube.com/watch?v=NAEZ4m-EjDA.
 
Note: I have noticed that I have to add ".Value" to a lot of elements when other people doesn't have to, I don't know why or if this is affecting somehow. I have tried adding .Value and .DateValue but nothing is working. 
 
My calendar is getting blank whenever I try to use the variable.
Categories:
  • elseb Profile Picture
    768 Super User 2025 Season 1 on 20 May 2024 at 21:59:55
    Re: VARIABLE WITH TODAY DATE

    try:

    Set(varToday, Now())

     

    you can display it in different formats using:

    Text(varToday, "dd/mm/yy")

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Loading complete