employee joing date display regular local format

This commit is contained in:
pramod mahajan 2025-09-09 14:30:08 +05:30
parent 1bd951636a
commit fdc377cc3a

View File

@ -3,6 +3,7 @@ import React, { useState, useEffect } from "react";
import { useChangePassword } from "../../components/Context/ChangePasswordContext"; import { useChangePassword } from "../../components/Context/ChangePasswordContext";
import GlobalModel from "../common/GlobalModel"; import GlobalModel from "../common/GlobalModel";
import ManageEmployee from "./ManageEmployee"; import ManageEmployee from "./ManageEmployee";
import { formatUTCToLocalTime } from "../../utils/dateUtils";
const EmpBanner = ({ profile, loggedInUser }) => { const EmpBanner = ({ profile, loggedInUser }) => {
const { openChangePassword } = useChangePassword(); const { openChangePassword } = useChangePassword();
@ -77,7 +78,7 @@ const EmpBanner = ({ profile, loggedInUser }) => {
{" "} {" "}
Joined on{" "} Joined on{" "}
{profile?.joiningDate ? ( {profile?.joiningDate ? (
new Date(profile.joiningDate).toLocaleDateString() formatUTCToLocalTime(profile.joiningDate)
) : ( ) : (
<em>NA</em> <em>NA</em>
)} )}