---
title: "#issameorbefore articles | Hashnode"
description: "Explore 1 articles tagged #issameorbefore on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/issameorbefore"
---

Tag

# #issameorbefore

1 posts · 0 followers

[Sun Pochin](https://hashnode.com/@sunpochin) · [Jun 27, 2024](https://hashnode.com/posts/dayjs-plugin-issameorbefore/667d2b6f1ba374fb1263f162)

### [dayjs 的用法 plugin isSameOrBefore](https://sunpochin.hashnode.dev/dayjs-plugin-issameorbefore?utm_source=hashnode&utm_medium=feed)

doc: https://day.js.org/docs/en/query/is-same-or-before 1. 前面要加 import2. dayjs 要 dayjs.extend(isSameOrBefore)3. 直接用 tz() 就好，裡面不用加 ('Asia/Taipei') 我沒聽懂原因。 import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'dayjs.extend(isSameOrBefore)const to...

1 min read · [sunpochin.hashnode.dev](https://sunpochin.hashnode.dev/dayjs-plugin-issameorbefore?utm_source=hashnode&utm_medium=feed)
