Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

date time format problem

(0) ShareShare
ReportReport
Posted on by 35

hi all ..

when i run my report that has a field of type time the result is h:mm:ss tt

3443.datetime.JPG

i tryied all formats in report but no result

  • suhailbinshuaib Profile Picture
    35 on at
    RE: date time format problem

    i made a simple search in google and found this line of code and it work

    =Format(DateAdd("s", Fields!MySecondsField.Value, "00:00:00"), "HH:mm:ss")

  • suhailbinshuaib Profile Picture
    35 on at
    RE: date time format problem

    oh i meant postedtime sorry

    possted time field and the data type is time

    when i display it in a ssrs report it shown me this h:mm:ss tt

    when i see the type of this field in my report it is int32

  • Martin Dráb Profile Picture
    231,833 Most Valuable Professional on at
    RE: date time format problem

    Where and how did you set the date/time format?

    By the way, this is a different field than before. In your previous reply, you said that the field was postedDate, not postedTime.

  • suhailbinshuaib Profile Picture
    35 on at
    RE: date time format problem

    it uses this

    =Fields!postedTime.Value

    and the type of the item in the data set is int32

  • Martin Dráb Profile Picture
    231,833 Most Valuable Professional on at
    RE: date time format problem

    Your code shows how you set the field value in AX, but your problem seems to be about SSRS. Open the design of your SSRS report, find the text box for "Posted time" and look at what expression it uses to get the value.

  • suhailbinshuaib Profile Picture
    35 on at
    RE: date time format problem

    i am reading from a retail table to tmp table that fetch the records to my report

    PostedStatementSummaryTmpTable.postedTime = retailStatementjour.postedTime;

  • Martin Dráb Profile Picture
    231,833 Most Valuable Professional on at
    RE: date time format problem

    Which expression do you use as the value of the text box? Didn't you actually set the format text as the value, instead of using a field value there and configuring a number format?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,001 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,833 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans