# \[Dataviewjs\] Get an automatic humanized, "Morning", "Afternoon", "Evening". \*\*Great for user greetings!

**URL:** <https://forum.obsidian.md/t/dataviewjs-get-an-automatic-humanized-morning-afternoon-evening-great-for-user-greetings/33351>\
**Category:** Workflows & Templates\
**Tags:** dataview\
**Created:** [March 2, 2022, 7:41pm UTC](https://forum.obsidian.md/t/dataviewjs-get-an-automatic-humanized-morning-afternoon-evening-great-for-user-greetings/33351 "2022-03-02T19:41:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ianlhayes](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ianlhayes/32/86059_2.png) [@ianlhayes](https://forum.obsidian.md/u/ianlhayes)\
**Post date:** [May 18, 2022, 4:10pm UTC](https://forum.obsidian.md/t/dataviewjs-get-an-automatic-humanized-morning-afternoon-evening-great-for-user-greetings/33351/3 "2022-05-18T16:10:25Z")

</div>

Thanks for this, I love the addition of an element of randomness! Is there any way to get Dataview to return a random greeting from an inline field, i.e. if I were to add `evening:: Take a deep breath` or `morning:: Pour another cup` to some of my daily note pages, could this snippet be modified to pull a sample from one of those?

Really, I’ve been trying to get a [daily gratitude reminder](https://forum.obsidian.md/t/return-random-daily-gratitude-from-daily-note-pages/), but I keep banging my head against the limitations of my scripting knowledge.

---

_[View the full topic](https://forum.obsidian.md/t/dataviewjs-get-an-automatic-humanized-morning-afternoon-evening-great-for-user-greetings/33351)._
