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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (1,867)