Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.21 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.21 KB

latindate.js

GitHub license GitHub issues Lines of code GitHub stars GitHub release (latest by date)

A date converter converting normal dates into latin written dates.

How to use latindate.js?

You can include this script on your website using this CDN:

https://cdn.jsdelivr.net/gh/PickwickSoft/latindate.js@v0.1.3/date.min.js

After that, use this method to generate the latin date:

var yourDate = new Date("YYYY-MM-DD") // For current date use Date() without parameters
var latinDate = dateToLatinDate(yourDate); // Returns a String

Important: The Date class does not support the european date format DD.MM.YYYY!

Make sure to pass the right format for a correct date in latin.