employee joing date display regular local format
This commit is contained in:
parent
1bd951636a
commit
fdc377cc3a
@ -3,6 +3,7 @@ import React, { useState, useEffect } from "react";
|
||||
import { useChangePassword } from "../../components/Context/ChangePasswordContext";
|
||||
import GlobalModel from "../common/GlobalModel";
|
||||
import ManageEmployee from "./ManageEmployee";
|
||||
import { formatUTCToLocalTime } from "../../utils/dateUtils";
|
||||
|
||||
const EmpBanner = ({ profile, loggedInUser }) => {
|
||||
const { openChangePassword } = useChangePassword();
|
||||
@ -77,7 +78,7 @@ const EmpBanner = ({ profile, loggedInUser }) => {
|
||||
{" "}
|
||||
Joined on{" "}
|
||||
{profile?.joiningDate ? (
|
||||
new Date(profile.joiningDate).toLocaleDateString()
|
||||
formatUTCToLocalTime(profile.joiningDate)
|
||||
) : (
|
||||
<em>NA</em>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user