cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Date Input and other code sharing

Hi Guys,

 

Im just curious as to whether anyone has any links to any sites where people are sharing apps and coding ideas etc for powerapps? A more open source sort of thing? 

 

The only reason i ask is because im trying to write a piece of code that auto corrects a users bad date inputs and the field will change it and display as the format dd-mm-yyyy,

 

Im guessing that this has been done and many other great thing done by many individuals here and around before, so why dont we have a massive display (i know about the app templates 🙂

 

for example the following 

 

1/1/10 and 01012010 and 1-1-10 etc would all change to

 

01-01-2010 (its how i want it)

 

PS i couldnt really find anywhere else to ask this? 

1 REPLY 1
eka24
Super User
Super User

Use:

If it is a DatePicker, select it and on it Format property put:

"dd-mm-yyyy"

 

If is in a textbox, put wrap the default of your formula with example:
Text(Dropdown1.Selected.City,"dd-mm-yyyy")

 

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

 

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,999)