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 / DateTimeValue dropping...
Power Apps
Unanswered

DateTimeValue dropping seconds value on conversion

(1) ShareShare
ReportReport
Posted on by 237
Hello -
 
I am using the DateTimeValue function and it is dropping the SECONDS value when used like this:
 
 
DateTimeValue(Concatenate(dtEventDate.SelectedDate, " " , Text(Now(), "hh:mm:ss AM/PM")))
 
The "dtEventDate" is just a simple classic "Date Picker" control.(see snapshot below)
 
If I use just 
(Concatenate(dtEventDate.SelectedDate, " " , Text(Now(), "hh:mm:ss AM/PM")))
then the output is fine:
 
What am I doing wrong when I am using the DateTimeValue function ?
Thanks.
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,006 Super User 2025 Season 2 on at
    Hi 
     
    Correct, because you are applying a format for the Concat, but you are not for he DateTimeValue conversion so it uses its default.
     
    You should be able to use  DateTiemValue(stuffhere, DateTimeFormat.LongDateTime)

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 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard