# File a header that contains date to org-roam-dailies

**URL:** <https://org-roam.discourse.group/t/file-a-header-that-contains-date-to-org-roam-dailies/2531>\
**Category:** How To\
**Created:** [March 24, 2022, 9:51pm UTC](https://org-roam.discourse.group/t/file-a-header-that-contains-date-to-org-roam-dailies/2531 "2022-03-24T21:51:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![midas](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@midas](https://org-roam.discourse.group/u/midas)\
**Post date:** [March 24, 2022, 9:51pm UTC](https://org-roam.discourse.group/t/file-a-header-that-contains-date-to-org-roam-dailies/2531/1 "2022-03-24T21:51:30Z")

</div>

I’d like to file a header that has a date-stamp to the appropriate org-roam-dailies file. If file does not exist for date, then an org-roam-dailies file is created.

I am aware of the following but none seem to apply readily to what I want to do:

- `(org-roam-dailies-calendar--file-to-date FILE)`. But it seems to take a FILE, not a HEADER.
- `org-roam-refile` but it does not take a parameter.
- `org-roam-dailies-find-date` finds “the daily-note for a date using the calendar, creating it if necessary”. But, I’d like to feed the function a date programatically.

---

<div class="post-metadata">

**Author:** ![mattc](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/mattc/32/8_2.png) [@mattc](https://org-roam.discourse.group/u/mattc)\
**Post date:** [March 27, 2022, 4:22pm UTC](https://org-roam.discourse.group/t/file-a-header-that-contains-date-to-org-roam-dailies/2531/2 "2022-03-27T16:22:35Z")

</div>

I created a function to allow me to insert a linked reference to a specific “daily” file. That might get you close to what you’re looking for. More info [here](https://github.com/org-roam/org-roam/issues/1587).
