Jump to content

Timezone FormatDate


WhoAmI

Recommended Posts

Made my own function and works now.

function formatDate ( timestamp ) 
    if ( tonumber ( timestamp ) ) then 
        local time = getRealTime ( timestamp ) 
        return string.format ( "%02d.%02d.%02d %02d:%02d", time.monthday, time.month + 1, time.year + 1900, time.hour, time.minute ) 
    end 
end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...