Astro Parse Date
Turn a date string into the integers the chart nodes demand
- year
- month
- day
The astral nodes in Comfyui-Kerykeion are picky: they want year, month, day as separate integers. But sometimes the date you have is a single blob of text - a string spat out by an LLM, pasted from a website, or typed as "2024-03-15". Astro Parse Date is the Time Utils node that splits that string into the three integers the rest of the pack expects, so you can connect a text source straight into a chart calculator without a manual copy-paste step.
It sits in ComfyUI-Pitonisa/Time Utils, and like its siblings Astro Current Date and Astro Date Offset, it's pure Python - no network, no dependencies beyond the standard library.
How it works
One date_string input, three year / month / day outputs. The parsing rule is simple and worth memorizing because it's format-dependent:
- If the string uses dashes (
2024-03-15), it's read as YYYY-MM-DD. - If the string uses slashes (
15/03/2024), it's read as DD/MM/YYYY.
So "2024-03-15" and "15/03/2024" both come out as year 2024, month 3, day 15 - but only if you feed each format the way it expects. Feed slashes a date in ISO order and you'll silently swap day and year. The node looks at the separator character, not the semantics.
There's a safety net, and it's a double-edged one: if the string doesn't parse cleanly (no separator found, or too many parts), the node prints a warning and falls back to today's date. No exception, no red error bubble - you just get "today" back. That's convenient when a bad parse would otherwise kill your run, and confusing when you're staring at a chart for the wrong date wondering what happened.
What to wire it into
The obvious use: take year / month / day from this node and feed them into a Natal Chart Calculator, Transit Data Calculator, or Natal Chart Image - the moment a date shows up as text in your workflow, this is the bridge. It's especially handy in LLM-driven graphs where a language model emits a date and you don't want to hand-transcribe it into three widgets. (The chart nodes still need hour and minute from somewhere, so pair it with the values you'd otherwise type.)
It's also just a handy general utility: any ComfyUI workflow that needs to destructure a date string into numbers can use it.
Installing it
Same pack install as the rest of the family:
cd ComfyUI/custom_nodes
git clone https://github.com/Meisoftcoltd/Comfyui-Kerykeion
cd Comfyui-Kerykeion
pip install -r requirements.txt
or install "ComfyUI-Kerykeion" through ComfyUI Manager and restart. Nothing here needs the heavy deps - no geocoding, no cairosvg - so this node will work even if the rest of the pack's setup is still fighting you.
Gotchas
- Order is format-dependent. Dashes = year-first, slashes = day-first. Get them mixed and the parse silently succeeds with the wrong date.
- The fallback is silent-ish. A bad string gives you today's date with only a console
Warning: Formato de fecha incorrectoline. If a parse suddenly produces "today," check both the format and the console before trusting it.
For converting text to numbers, it's three outputs and done - just mind the separator rule.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| date_string | STRING | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| year | INT | — |
| month | INT | — |
| day | INT | — |