Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

tolocaledatestring format dd-mm-yyyy

function getDate(dateTimeString)
    {
        var date    = getDateTime(dateTimeString);
        var options = { year: "numeric", month: "numeric", day: "numeric" };        
        return date.toLocaleDateString( date.getTimezoneOffset(), options );
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tolocaledatestring #format
ADD COMMENT
Topic
Name
2+6 =