Dinka dates in Javascript
The Javascript dinka.js file is the first version of a javascript that will convert the internal date format into a form appropriate for the Dinka language. This version was developed for the Dinka community in Australia and harmonises Dinka and Australian date conventions.
A more extensive version of the script, allowing alternative date formats, is under development. If you wish to use the file, please right mouse click on the link and choose Save Link As … option in the content menu. If you wish to edit the javascript file, remember to open and save the file as UTF-8.
To use this script:
- Download dinka.js;
- Place a script element in the head element ot the webpage, e.g.
<script src="dinka.js" type="text/javascript"></script>
Replace the src attribute value, with the appropriate location of the javascript file on your web server. - Add appropriate code to the page to display the desired date.
To display the current date
<script type="text/javascript">
<!--
myDate = new Date();
document.writeln(getDisplayDate(myDate));
// -->
</script>
Add this script to the body of your web page at the point you want the current date to appear.
For example:
Today’s date in Dinka is “”.
To display the date a web page was last modified
<script type="text/javascript">
<!--
myDate = new Date(document.lastModified);
document.writeln("Wɛ̈r ciëën aköl nïn " + getDisplayDate(myDate));
// -->
</script>
Add this script to the body of your web page at the point you want the Last Modified date to appear.
If you are interested in contributing, providing further information, or are aware of errors on this page, please contact the editors.
