Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Date object for local time and date

now.toLocaleString(undefined, {
    day:    'numeric',
    month:  'numeric',
    year:   'numeric',
    hour:   '2-digit',
    minute: '2-digit',
});
Source by www.toptal.com #
 
PREVIOUS NEXT
Tagged: #Date #object #local #time #date
ADD COMMENT
Topic
Name
6+2 =