web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Pages
Unanswered

Date Picker

(0) ShareShare
ReportReport
Posted on by

I'm using a DatePicker, and I would like to manipulate the selected information of this component, when they select the date, I would like to add it + a time of interest to me. Example: They selected 10/8/2021. This date will be like 10/08/2021 00:00:00, I would like it to be 10/08/2021 99:99:99. It's possible?

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @Anonymous ,

    You cannot add time portion like that as it is stored as a DateTime value in the system and time part cannot go beyond 24 hours. You can find more about DateTime here - https://docs.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0.

  • Community Power Platform Member Profile Picture
    on at

    Yes but it doesn't have to be 99:99:99 it can be 24:00:00 was an example

  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    You can use javascript or jquery to set the value of the field as you like. You can find more about datetime field in my blog post - https://www.dancingwithcrm.com/date-fields-on-powerappsportals/ and in official docs for the widget https://getdatepicker.com/4/Options/ . To set the date with code you can use next code:

    $('YOUR_FIELD_ID').next().data("DateTimePicker").date(new Date())
  • Community Power Platform Member Profile Picture
    on at

    I can use this code in this function

    Sum (
    Filter('SALDO PRD ACUMULADO';Data>= Datainicio1.SelectedDate;Data<= Datafim1.SelectedDate);
    If(comboModelo.Selected.Modelo<>"All";Modelo=comboModelo.Selected.Modelo;CP8))

  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Based on the function in your reply I assume you are talking about DatePicket in Canvas Apps not in Power Apps Portals. This is a forum for Portals questions. If you want to get an answer about Canvas Apps please post it in the forum here - https://powerusers.microsoft.com/t5/Building-Power-Apps/bd-p/PowerAppsForum1

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard