cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chunai
Regular Visitor

day number of the year

How to automatically fill one field - "day number of the year" from another field which is a date in a EditForm screen.

1 ACCEPTED SOLUTION

Accepted Solutions
PabloRoldan
Helper I
Helper I

Hi, Hope it helps, place this formula in the (TextBox or Label) Default or Text Property repectively,

 

 

"Day of the year: " & Round((DatePicker1.SelectedDate - Date(Year(DatePicker1.SelectedDate)-1,12,31)),1)

 

 

PabloRoldan_0-1634698970640.png

Please accept it as Answer if it was helpful.

regards

 

View solution in original post

4 REPLIES 4
PabloRoldan
Helper I
Helper I

Hi, Hope it helps, place this formula in the (TextBox or Label) Default or Text Property repectively,

 

 

"Day of the year: " & Round((DatePicker1.SelectedDate - Date(Year(DatePicker1.SelectedDate)-1,12,31)),1)

 

 

PabloRoldan_0-1634698970640.png

Please accept it as Answer if it was helpful.

regards

 

View solution in original post

Thank you very much for your help! Could you please look at my formula in the picture below? Sorry, I am just a beginner here.

Chunai_0-1634699380126.png

 

NP, What error is throwing?  Please ensure the following:
DatePicker1: Is the name of the control where you select the Date

PabloRoldan_0-1634699749541.png

DataCardValue10: You don't need to use it.

🙂

 

OMG Thank you! It's working!

Chunai_0-1634700112114.png

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,764)