web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / using a specific date ...
Power Apps
Unanswered

using a specific date in a function type field

(0) ShareShare
ReportReport
Posted on by 704

Hi,

I would like to have a function field where I convert an existing datetimefield to an integer f.e. representing the old fashioned days since the beginning of the 20th century.

I can see I can use the datediff function in a function field type but not the datevalue function. So I see no way to actually enter a date like "01-01-1900" into the function. 

Also if i would like to convert the date to text in a function type field I have no options. Text() only alows numbers in this context no dates.

Is de function field type still in it's child-shoes or am I missing things?

I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @HansHeintz ,

     

    To get a fixed date, you can use the Date() function:

    Date(1900,1,1)

    BCBuizer_0-1706371896152.png

     

    You can then convert this to a text using the Text() function:

    BCBuizer_1-1706371933650.png

     

  • HansHeintz Profile Picture
    704 on at

    Sorry the Date function is not valid in the syntax for a formula field type.

  • HansHeintz Profile Picture
    704 on at

    What I can use is the Now() function but this seems a bit silly since what is now now will not be now when I look at the data and I guess the value for this field is hard coded into the table everytime a change to the record is made.

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @HansHeintz ,

     

    Are you talking about a Formula type column in Dataverse? Since you posted this in the Power Apps community on the Building Power Apps forum, I assumed this was about Power Apps.

     

    In case you are talking about Dataverse, then you are right: Dataverse formula columns are not in General Availability yet, but in preview so functionality is limited: Work with Dataverse formula columns - Power Apps | Microsoft Learn

    BCBuizer_0-1706471061761.png

     

    Eventually these formula type columns are supposed to replace calculated columns, but those don't support what you are looking for either: Define calculated fields | Microsoft Learn

     

    The workaround I've been exploring is to add a another column to the table: 

    BCBuizer_1-1706472688556.png

    Using a business rule this is automatically set to 1/1/1900 upon creation of a new row:

    BCBuizer_2-1706472933140.png

     

    This column can now be used in the Formula column (or calculated column) to act as the reference:

    BCBuizer_4-1706473204330.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard