Skip to content

Today's lunar date

A miniature tear-off calendar placed on your page. It shows the solar date in large type, with the lunar date and can chi right below, along with the current solar term. Turn on the text option and each day gets a proverb or folk verse suited to the lunar month, just like what's printed on the back of a torn-off calendar page.

Try it right here, then grab the code

Frame size
<div data-widget="lich-hom-nay" data-lang="en"></div>
<script async src="https://nhatnguyet.org/embed/w.js"></script>

What's inside this widget

How to use it

  1. Paste the embed code wherever you want the calendar to appear, usually the sidebar or the footer of the post.
  2. If your site has a dark background, choose Dark background in the preview box and the embed code adjusts automatically.
  3. If you want a new proverb every day, turn on Include a proverb.
  4. Done. The calendar rolls over to the new day at midnight, so you never have to touch it again.

Adjustable attributes

AttributeValueMeaning
data-widgetrequiredWidget code, taken from the embed code block of each widget
data-themelight, dark or autoDefaults to light. auto follows the light or dark setting of the reader's device
data-accent#b5402fAccent color as a 6-character hex value, to match your brand identity
data-langvi, en or zhDefaults to vi
data-tho1, or leave emptyShows a proverb or folk verse matching the lunar month below the content
data-sizecompact, standard or wideLevel of detail by frame width: compact drops secondary details, wide spreads out. Default is standard
data-countryVN, CN, TW, HK, MO, SG, MY, ID, PH, KR or JPWhose lunar calendar to use. Defaults to VN (UTC+7); China and Chinese communities use UTC+8, Korea and Japan UTC+9, so in some years the lunar date and New Year differ from Vietnam's. Applies to the six calendar widgets: today, month, auspicious hours, Tết countdown, converter, 12 zodiac animals

A few things to note first

  • Free to use, unlimited impressions, no account required.
  • Please keep the small attribution line at the bottom of the widget intact, don't cover it or shrink it to the point of being unreadable.
  • Please do not embed on gambling, adult content, scam, or anything illegal under Vietnamese law.

Read the full terms of use

Want to look it over before pasting it on your real site? There's a working example page you can open directly in your browser, along with documentation in Vietnamese and English, all at GitHub repository for this widget.

Nội dung này có giúp được anh chị không?

You may also need

#WidgetLichAm #NhungLichAmMienPhi #LichVanNienWidget