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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Date and Time field in...
Power Pages
Answered

Date and Time field in form

(1) ShareShare
ReportReport
Posted on by 33
I have a requirement for a date and time field in a powerpages form.  It's not an automatic timestamp it's a field where the user enters the date and a particular time.  What's the best way to do this?  The corresponding DV field  where the data goes is a date/time field
Categories:
  • Suggested answer
    Fubar Profile Picture
    17 Super User 2026 Season 1 on at
    Not sure what you are actually after, if you want the portal user to enter a Date-time, then you have a Date field in Dataverse configured to not be Date only, add it to your form, and the portal will render a datetimepicker control for the user.
    Or do you want to populate it with data rather than the user entering the data (or default it to a value)?
    Or are you thinking you want 2 fields one for date one for time (this will be more difficult)?
  • Suggested answer
    GWham Profile Picture
    58 Moderator on at
    Place a date field on your form and the portal will render a date/time picker.
     
    if you want to set it to a specific date you can use:
    $("#your_fieldname").next().data("DateTimePicker").defaultDate(new Date("2020-01-01"));
     
     
     
  • CU01101113-0 Profile Picture
    2 on at
    ok so  maybe I didn't explain it properly.
     
    My column in Dataverse is Date and Time.    At the Power Pages End I require the users to manually enter a date and a time.   The date picker only allows for date and automatically time stamps the time that they choose a date. I need them to be able to manually enter a specific time as well as date.
     
    In powerapps when I have requirement I just use drop downs with 24 and 60 items r..and then concatenate it with the date picker I just thought that maybe in Power Pages there maybe a better way to do it?
     
    thanks
     
     
  • Suggested answer
    Fubar Profile Picture
    17 Super User 2026 Season 1 on at
    If your dataverse Date is set to be Date Time (and is not set to Date only), then by default you should see the following, note the clock in red circle allows you to set Time.
     
     
    With JavaScript/JQuery you can also tell it to display the time side-by-side so rather than the button it appears to the right of the dates without a button click.
     
    $("#field_schemaname").next().data("DateTimePicker").sideBySide(true)
     
  • DBNL Profile Picture
    33 on at
    Perfect thank you Fubar

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 43

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 20 Super User 2026 Season 2

Last 30 days Overall leaderboard