cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Date Picker - past dates beyond 01/01/1970

I have a date picker on a screen. When my users enter a date older than 01/01/1970, e.g. 12/03/1965, the date picker auto-defaults it to 01/01/1970. 

 

Any guidance appreciated.

 

2 REPLIES 2
Highlighted
Dual Super User II
Dual Super User II

Re: Date Picker - past dates beyond 01/01/1970

Dates are stored as the number of ticks after 1/1/1970, so I don't think you can store an actual datetime value older than that.  You would need to store it as a text value.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Community Support
Community Support

Re: Date Picker - past dates beyond 01/01/1970

Hi @asifkhawaja ,

Do you want to choose year before 1970?
The reason why you met this problem is that:
Datepicker's start year is 1970 by default.

The startyear of Datepicker decide the earliest that you could choose in the datepicker.

In your issue, you just need to change your Datepicker's startyear to 1965.

If you want to display earlier year, you could also fill in 1900 or other years.

3174.PNG

 

You could read this doc to know more about datepicker's proerty:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-date-picker

(I suggest you notice the startyear and endyear property)

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,745)