I have three date formats displayed below :-
en-GB   –             DD/MM/YYYY hh:mm:ss
en-US   –             MM/DD/ YYYY hh:mm:ss
zh-cn || zh –         YYYY/MM/DD hh:mm:ss
I have to develop an angular pipe which actually detects the locale / Browser language or language from the localstorage which i stored it should format the date according to the language of the application
i.e
if language is en-GB then it should format the date in --> DD/MM/YYYY hh:mm:ss
or 
if language is en-US then it should format the date in -->  MM/DD/ YYYY hh:mm:ss
or
if language is zh-cn || zh then it should format the date in -->  YYYY/MM/DD hh:mm:ss
Please any code referral or any link it would be an ultimate help from you people.
thank's
 
    