# \#date\_time

**URL:** https://swi-prolog.discourse.group/tag/date-time/39.md

[Latest](https://swi-prolog.discourse.group/latest.md) · [Categories](https://swi-prolog.discourse.group/categories.md) · [Tags](https://swi-prolog.discourse.group/tags.md)

---

## [Generating dates between a start and end date](https://swi-prolog.discourse.group/t/generating-dates-between-a-start-and-end-date/3440)

<div class="topic-metadata">

**Author:** [@Boris](https://swi-prolog.discourse.group/u/Boris)\
**Replies:** 4\
**Last updated:** [December 30, 2020, 9:29am UTC](https://swi-prolog.discourse.group/t/generating-dates-between-a-start-and-end-date/3440 "2020-12-30T09:29:32Z")

</div>

The task seemed easy enough: given a start and end date, generate all dates between them. I came up with code that works, but it feels hacky. For example, to find all dates between today, 2020-12-29, and January 6th next…

---

## [Some examples as test cases for stamp\_date\_time/3 to help in understanding how it works](https://swi-prolog.discourse.group/t/some-examples-as-test-cases-for-stamp-date-time-3-to-help-in-understanding-how-it-works/1737)

<div class="topic-metadata">

**Author:** [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Replies:** 0\
**Last updated:** [January 12, 2020, 6:22pm UTC](https://swi-prolog.discourse.group/t/some-examples-as-test-cases-for-stamp-date-time-3-to-help-in-understanding-how-it-works/1737 "2020-01-12T18:22:47Z")

</div>

Created these test cases to help me further understand how to use stamp\_date\_time/3. The SWI-Prolog implementation (source code) (test) Sorry that the code is larger than allowed here, so please cut and paste it into a…
