HTML Elements Forums Charts & Data Viz Table Date and time same column

Tagged: , , , ,

This topic contains 2 replies, has 2 voices, and was last updated by Avatar Johnny Johnny 2 days, 11 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #101691
    Avatar
    Johnny Johnny
    Participant

    Dear Smart HTML super Team!

    How are you? Hope you are doing great ^^ would like to know if it’s possible to set date and time in a column, right now I only can set date but it shows only the year/month/day without hour. Is it possible? Shall I use a basic string?

    Thanks for your time and great work!
    Johnny Johnny

    #101715
    Avatar
    admin
    Keymaster

    Hi,

    The Table component when it displays a Dates in the column, the Data can be formatted by using a formatFunction. Example about that functionality is available on that page: https://www.htmlelements.com/demos/table/overview/

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    #101720
    Avatar
    Johnny Johnny
    Participant

    Thank you so much, after checking I’m gonna set directly the data as needed with a string for this case (without the formatFunction)

    toLocalISOString(date).replace(‘T’, ‘ ‘)

    But I see the formatFunction really helpful, please have a nice rest of the day!
    Johnny Johnny

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.