# 12hr clock AM/PM

**URL:** <https://discourse.nodered.org/t/12hr-clock-am-pm/76931>\
**Category:** General\
**Created:** [25 March 2023 13:42 UTC](https://discourse.nodered.org/t/12hr-clock-am-pm/76931 "2023-03-25T13:42:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [25 March 2023 13:42 UTC](https://discourse.nodered.org/t/12hr-clock-am-pm/76931/1 "2023-03-25T13:42:20Z")

</div>

Hey All,  
I'm struggling to make the clock node show a 12 hr clock AM/PM. Is this possible? Here is my setup

```auto
[
    {
        "id": "55ddb23e7d7a29c7",
        "type": "inject",
        "z": "3d0b35139ce9cb25",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": "1",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 190,
        "y": 560,
        "wires": [
            [
                "5c43742071398733"
            ]
        ]
    },
    {
        "id": "5c43742071398733",
        "type": "ui_digital_clock",
        "z": "3d0b35139ce9cb25",
        "name": "Clock",
        "group": "c41d575533cb35d7",
        "order": 1,
        "width": 0,
        "height": 0,
        "x": 410,
        "y": 560,
        "wires": []
    },
    {
        "id": "c41d575533cb35d7",
        "type": "ui_group",
        "name": "Apartment",
        "tab": "c548a45fe690539c",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "c548a45fe690539c",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": true
    }
]

```

Thanks  
Rich

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 March 2023 14:32 UTC](https://discourse.nodered.org/t/12hr-clock-am-pm/76931/2 "2023-03-25T14:32:45Z")

</div>

This is something the author of the node will have to do. It just so happens I added an RFE to the node back in December. You could add to the [issue on GitHub](https://github.com/patrickknabe/node-red-contrib-ui-digital-clock/issues/1) and maybe the author will make the change, but there is no guarantee.

You could also look at the node's code and figure out a way to do it. Then submit that as a PR which the author might then roll into the node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 May 2023 14:33 UTC](https://discourse.nodered.org/t/12hr-clock-am-pm/76931/3 "2023-05-24T14:33:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
