Here’s a useful script for landing pages by the Yellow Web.
It’s a simple, lightweight 9-kilobytes script, which allows you to insert all kinds of dates on the landing page. What does it do? It outputs as follows:
- The date and month in the following format: “date and month in words”;
- The long date and the weekday;
- The current date in the following format: DD.MM.YYYY or (for USA etc.) MM.DD.YYYY;
- It’s localized in 30 languages to display months and weekdays.
It’s easy to use: enable the “dtime.js” script file, specify the two-letter country designation, and then use the three built-in features 👇
<script>
let lang_locale='ru';
dtimes(4);</script>
<br/>
<script>dtime(2);</script>
<br/>
<script>dtime_nums(2,true);</script>
<br/>
<script>dtime_nums(2,false);</script>
Download the script file: dtime.js