Date Format Not Consistent – Should Always Display DD‑MM‑YYYY
This commit is contained in:
parent
cc05dbad20
commit
a763ec4412
@ -153,7 +153,7 @@ const NoteCardDirectoryEditable = ({
|
||||
.utc(noteItem?.createdAt)
|
||||
.add(5, "hours")
|
||||
.add(30, "minutes")
|
||||
.format("MMMM DD, YYYY [at] hh:mm A")}
|
||||
.format("DD MMMM, YYYY [at] hh:mm A")}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
|
@ -160,7 +160,7 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
|
||||
|
||||
<div className="d-flex align-items-center">
|
||||
<span>
|
||||
{moment(profileContactState.createdAt).format("MMMM DD, YYYY")}
|
||||
{moment(profileContactState.createdAt).format("DD MMMM, YYYY")}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -394,7 +394,7 @@ useEffect(() => {
|
||||
>
|
||||
{batch.documents.map((d, i) => {
|
||||
const hoverDate = moment(d.uploadedAt).format(
|
||||
"DD-MM-YYYY"
|
||||
"DD MMMM, YYYY"
|
||||
);
|
||||
const hoverTime = moment(d.uploadedAt).format(
|
||||
"hh:mm A"
|
||||
|
@ -68,7 +68,7 @@ export const formatNumber = (num) => {
|
||||
return Number.isInteger(num) ? num : num.toFixed(2);
|
||||
};
|
||||
export const formatUTCToLocalTime = (datetime) =>{
|
||||
return moment.utc(datetime).local().format("MMMM DD, YYYY [at] hh:mm A");
|
||||
return moment.utc(datetime).local().format("DD MMMM, YYYY [at] hh:mm A");
|
||||
}
|
||||
|
||||
export const getCompletionPercentage = (completedWork, plannedWork)=> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user