cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shaneOZ
Responsive Resident
Responsive Resident

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 III
Super User III

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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