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

DateTimeValue dropping seconds value on conversion

(1) ShareShare
ReportReport
Posted on by 239
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,932 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard