Hi @81288,
try this code:
local todaysDate=os.date("\*t") local showText="Todays date is:"..todaysDate.month.."-"..todaysDate.day.."-"..todaysDate.year print (showText) local onScreen=display.newText({text=showText,x=display.contentCenterX, y=display.contentCenterY})
line 1, get the date to a table (that you knew)
line 2, pass to a string all the variables you needed from the table
line 3, show the string “showText” on the console of corona (print will only show in console, is useful when we are debugging, for example)
line 4, show the string “showText” on screen as you wanted. Brent gave you the correct link to display objects on screen.
don’t be offended (it’s not my intention) but you really should start from some sort of tutorial or from here:
https://coronalabs.com/resources/tutorials/getting-started-with-corona/
if I had to rate your question on a scale of 0 to 100 on difficulty, it is a -1.
regards,
Carlos