mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-27 15:18:08 +00:00
* chore: arrow-body-style func-style is added in the rule * fix: linting issues fixed Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
10 lines
205 B
TypeScript
10 lines
205 B
TypeScript
const convertDateToAmAndPm = (date: Date): string =>
|
|
date.toLocaleString('en-US', {
|
|
hour: '2-digit',
|
|
minute: 'numeric',
|
|
second: 'numeric',
|
|
hour12: true,
|
|
});
|
|
|
|
export default convertDateToAmAndPm;
|