Skip to content

Commit

Permalink
Added two date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
tanstaaflFH authored Jan 29, 2019
1 parent 9de8c6c commit 8e518dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ export function getDateStringLocale( inpDate, withDayDescription, dateFormat ) {
let dateLocale0 = ( inpDate.getDate() ) + "." + ( inpDate.getMonth() + 1 ) + "." + ( inpDate.getYear() + 1900 );
let dateLocale1 = ( inpDate.getMonth() + 1 ) + "/" + ( inpDate.getDate() ) + "/" + ( inpDate.getYear() + 1900 );
let dateLocale2 = ( inpDate.getDate() ) + "/" + ( inpDate.getMonth() + 1 ) + "/" + ( inpDate.getYear() + 1900 );
let dateLocale3 = ( ( inpDate.getYear() + 1900 ) + "." + ( inpDate.getMonth() + 1 ) + "." + inpDate.getDate() );
let dateLocale4 = ( ( inpDate.getYear() + 1900 ) + "/" + ( inpDate.getMonth() + 1 ) + "/" + inpDate.getDate() );
let dateLocale = [
dateLocale0,
dateLocale1,
dateLocale2
dateLocale2,
dateLocale3,
dateLocale4
];
returnString = dateLocale[dateFormat];

Expand Down Expand Up @@ -133,4 +137,4 @@ export function translateHRzone(curZone) {
let returnString = ( localHR[userLanguage] || "--") ;
return returnString;

}
}

0 comments on commit 8e518dd

Please sign in to comment.