two digit day month on reps doc
This commit is contained in:
@@ -111,8 +111,8 @@ let MakeRepresentation = (props) => {
|
||||
|
||||
const repDate = new Date();
|
||||
|
||||
let day = repDate.getDate();
|
||||
let month = repDate.getMonth() + 1;
|
||||
let day = ("0" + repDate.getDate()).slice(-2);
|
||||
let month = ("0" + repDate.getMonth() + 1).slice(-2);
|
||||
let year = repDate.getFullYear();
|
||||
|
||||
switch (values.representationCapacity) {
|
||||
|
||||
Reference in New Issue
Block a user