Trello-Roblox Time?

Hello there,

I’ve been trying to make a Trello - Roblox System where sessions can be displayed. Although all the errors were fixed and it’s working fine now, I was wondering how can I add the Due Date to roblox.

image

So when I add a card with a Date [ like shown above], it displays where it says time:

image

If you have any ideas, let me know!

Thanks,
@PixelBytezz

1 Like

According to the Trello documentation for the /lists/{id}/cards endpoint which returns all cards in a list, the due date is included within each card:

[
    {
        "id": "...",
        "desc": "..." || null/nil,
        "due": "YYYY-MM-DDTHH:mm:ssZ" || null/nil
    }
]
1 Like

image

Is there a way to change the format?

Instead of "YYYY-MM-DDTHH:mm:ssZ"

This is an ISO8601 timestamp, from which you construct a DateTime object from using fromIsoDate:

-- Construct a DateTime object representing the date and time based on the timestamp
local scheduledTimeData = DateTime.fromIsoDate(timestamp)

-- Get the time of the event (in the format: h-mm AM/PM) in the client's local time
-- For info regarding the format, please see the DateTime reference and refer to String Format and Composite Tokens
local scheduledTime = scheduledTimeData:FormatLocalTime("LT", "en-us")

Thank you!

image

Yep, the time shows perfectly. Now the only thing I need to do is make a better UI.

Make sure you use a localscript to convert the ISO8601 TS to Local Time, otherwise the time will display in the server’s timezone which could be anything.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.