cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanNik
Frequent Visitor

Using Date Picker without Time

Hey Guys,

 

I am looking for a way to use the Day Picker without the Time function.

Just wanna set and save a Date. Do you know any approach?

 

greetings

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi DanNik,

 

Could you tell us more details about your scenario?

 

If you want to save a Date, you could try to use Patch function.
Say I have a SharePoint list, and there is a Date column in the list, I can use Patch function to save the date to the list.
The code I am using is:
Patch(ListB,Defaults(ListB),{Title:TextInput2.Text,Date: DatePicker1.SelectedDate})

 

About Patch function, please check this documentation:
https://powerapps.microsoft.com/en-us/tutorials/function-patch/

 

And also, you could use Text function to format the Date/Time value. Please check this documentation about Text function for more details:
https://powerapps.microsoft.com/en-us/tutorials/function-text/

 

Please feel free reply if you need more help.


Best regards,
Mabel Mao

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

View solution in original post

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

Hi DanNik,

 

Could you tell us more details about your scenario?

 

If you want to save a Date, you could try to use Patch function.
Say I have a SharePoint list, and there is a Date column in the list, I can use Patch function to save the date to the list.
The code I am using is:
Patch(ListB,Defaults(ListB),{Title:TextInput2.Text,Date: DatePicker1.SelectedDate})

 

About Patch function, please check this documentation:
https://powerapps.microsoft.com/en-us/tutorials/function-patch/

 

And also, you could use Text function to format the Date/Time value. Please check this documentation about Text function for more details:
https://powerapps.microsoft.com/en-us/tutorials/function-text/

 

Please feel free reply if you need more help.


Best regards,
Mabel Mao

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

Any idea why datepicker will log a time when i first submit a record, and yet if i go to submit another record the time is not logged? The goal here is to remove the time aspect that gets submitted the first time a record is submitted.

What would the impact be of taking the default Date Card, deleting Hour, Minute, Error Message and Seperator, and changing the Update parameter for the card to:

 

Text(DateValue1.SelectedDate,"[$-en-US]mm/dd/yyyy")

 

I did just that with one of my canvas apps and haven't had any issues.

Hey bsellers,

 

It still saves to excel table with time appended.  Any thoughts?

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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