Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vaibhav Rathore <[email protected]>
  • Loading branch information
deepakbarmola and rathorevaibhav authored Aug 17, 2022
1 parent 168c2dd commit 27fc6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/date-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const getLocaleMonth = (date: Date, locale: string) => {
bottomValue[0].toLocaleUpperCase()
);
const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
let monthNumber : number =monthNames.indexOf(bottomValue) + 1;
let monthNumber : number = monthNames.indexOf(bottomValue) + 1;
bottomValue = monthNumber < 10 ? '0' + monthNumber.toString() : monthNumber.toString();
return bottomValue;
};
Expand Down

0 comments on commit 27fc6b7

Please sign in to comment.