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 Platform Community / Forums / Power Apps / Date picker - convert ...
Power Apps
Unanswered

Date picker - convert Javascript date from milliseconds to dd/mm/yyyy

(0) ShareShare
ReportReport
Posted on by 7

Hi, new to the forum and to Powerapps. I'm trying to patch a date picker selection to a Sharepoint list, using:

Patch( 'Sharepoint list', ThisItem, {Deletion:Value(dateDeletion.Value)})

 

So I just get the Javascript date in milliseconds on the Sharepoint list field. However, I've also tried dateDeletion.Value with .Date("dd/mm/yyyy"), getDate, Date.ToString() and Powerapps doesn't like any of them. Have also tried using dateDeletion.SelectedDate. Sorry in advance if I'm missing something basic here, though I'm still quite new to this.

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Firstly, check the settigns of your date column sharepoint and make sure it is set to Date Only

    TheRobRush_1-1687870328194.png

     

    Set both of these to No


    then try this

     

    Text(DatePicker1.SelectedDate,"dd/mm/yyyy")

     

    if you need it in that specific format (change datepicker1 to name of your datepicker)

    Or simply

    DateValue(DatePicker1.SelectedDate)

     

    for modern control version these will be

    Text(DatePickerCanvas1.Value, "dd/mm/yyyy")

     

    and

     

    DateValue(DatePickerCanvas1.Value)
  • Treboro Profile Picture
    7 on at

    Thanks, changed Sharepoint column settings. However, I'm using a modern control datepicker, tried with {Deletion:Value(Text(dateDeletion.Value,"dd/mm/yy"))}

    and get 'requested operation is invalid'

  • TheRobRush Profile Picture
    11,128 Moderator on at

    should only need be

    {Deletion:dateDeletion.Value}

    sharepoint will automatically store it in the format it wants, as for displaying it later in your specific format you would do that app side with the Text(SharePointListName.SharepointDateColumnName, "dd/mm/yy")

     

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    @Treboro has your issue been resolved? If so don't forget to mark an answer as the solution so others can find answers if they also experience the same issue.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard