Create a Date Vector takes multiple YYYY-MM-DD dates and formats them into a single vector-style output. It’s a quick way to compress a list of dates into a clean, customizable string for use in datasets, code arrays, or time-based input formats.
How to Use:
- Enter one date per line in
YYYY-MM-DD
format into the input box. - The vector output updates live in the right box.
- Use the Options panel to format the output:
- Add padding to single-digit months/days
- Toggle between dash or compact format
- Choose to wrap the final output in square brackets
- Use Choose File to load a
.txt
or.csv
list of dates. - Click Copy Output or Export to File to save your vector.
- Use Clear All to reset everything and start over.
What Create a Date Vector can do:
- Combines multiple dates into a single, comma-separated list.
- Filters out invalid formats or out-of-range values.
- Automatically highlights output changes.
Tool Options:
- Pad single digits with zero: Ensures consistent formatting (e.g.,
2025-6-1
→2025-06-01
) - Use dash separator: Switch between
YYYY-MM-DD
andYYYYMMDD
- Wrap in brackets: Formats the output as
[2025-06-01, 2025-12-31]
Example:
Input:
2025-6-1
2025-12-31
With all toggles enabled, returns:
[2025-06-01, 2025-12-31]
With dashes disabled and wrapping off:
20250601, 20251231
Common Use Cases:
Create a Date Vector is perfect for developers formatting arrays, analysts preparing datasets, or anyone needing to organize lists of dates in a compact, standardized format. It’s especially useful for scripting, data pipelines, and batch-processing configurations.
Useful Tools & Suggestions:
To build from scratch, Generate a Date Sequence gives you the pieces to feed into your vector. And if you’re running parallel timelines, Create a Time Vector keeps your hours and minutes aligned with your dates.