I was just wondering if i could snip off the last few characters from the Created date output from “GetProductInfo()”
Ex:
Code:
local TeleportService = game:GetService("TeleportService")
local mps = game:GetService("MarketplaceService")
local GameIds = {15367257581, 10735645742, 12670361524}
script.Parent.ClickDetector.MouseClick:Connect(function(Plr)
if Plr then
local GameId = GameIds[math.random(1,#GameIds)]
local info = mps:GetProductInfo(GameId)
game.Workspace.Screen.ID.Value = GameId
game.Workspace.Screen.SurfaceGui.GName.Text = "Name: ".. info.Name
game.Workspace.Screen.SurfaceGui.Description.Text = "Description: ".. info.Description
game.Workspace.Screen.SurfaceGui.DateCreate.Text = "Date Created: ".. info.Created
game.Workspace.Screen.SurfaceGui.DateUpdate.Text = "Date Update: ".. info.Updated
game.Workspace.SFX.Click:Play()
end
end)