ComfyUI Node

Date Picker πŸ“…

A tiny helper that hands you a date as a string

By lazniakΒ·Created 2 years agoΒ·Updated about a year agoΒ· 3
Date Picker πŸ“…
    • STRING
    β—„year2026β–Ί
    β—„month7β–Ί
    β—„day20β–Ί

    Let's be straight about this one: the Date Picker is the spare-parts drawer of the Google Photos Loader pack. It's a tiny utility that takes a year, a month, and a day, and outputs a formatted date string. That's it. It's not where the magic happens - but it's a fine example of the pack's author shipping convenience helpers alongside the real loaders.

    What it does

    Three integer inputs, one string output:

    • year (INT, 1900–2100)
    • month (INT, 1–12)
    • day (INT, 1–31)

    The defaults track today's date, so a freshly-dropped node is always "today." When you run it, it validates the date with Python's datetime, and emits YYYY-MM-DD as a STRING. Hand it an impossible date - February 30th, say - and it prints an error to the console and falls back to today's date instead of crashing.

    The wiring reality check

    Here's where the README and the actual schema don't quite line up, and it's worth knowing before you build a workflow around it. You might expect this node to drive the Images Loader's date filtering. It doesn't - not directly. The Images Loader takes three separate specific_year / specific_month / specific_day integer inputs, and this node outputs a single combined string. There's no DATE_STRING input on the loader for this to plug into. If your goal is "only photos from July 2026," set those three ints on the Images Loader yourself.

    So what is it for? Anything that wants a date string: a metadata/label node, a filename component, text you're stuffing into a prompt as context, or just a human-readable bookmark of when a workflow ran. It's a helper, not a filter.

    How to install it

    cd ComfyUI/custom_nodes
    git clone https://github.com/lazniak/comfyui-google-photos-loader.git
    pip install -r requirements.txt
    # restart ComfyUI
    

    Or ComfyUI Manager β†’ "Google Photos Loader" (by PabloGFX) β†’ Install β†’ restart. No model downloads, no dependencies beyond what the pack already needs, and notably this node doesn't even require the Google auth - it never touches the network. If you just want a date string in your graph, this works even on a pack that's otherwise misconfigured.

    Troubleshooting

    • Wrong date on a fresh node β†’ the defaults come from the machine's clock, and they're set when ComfyUI loads the node. If the date looks off, it's your system clock or a stale cached node definition - re-add the node.
    • It doesn't affect the Images Loader's results β†’ expected, see the wiring section above. Use the loader's own year/month/day ints for filtering.
    Categoryutils

    Inputs (3)

    NameTypeDefaultDescription
    yearINT20261900–2100β€”
    monthINT71–12β€”
    dayINT201–31β€”

    Outputs (1)

    NameTypeDescription
    STRINGSTRINGβ€”