JavaScript Tutorial/Dojo toolkit/Calendar
dojo.cldr.monetary.getData
<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/"
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script language="JavaScript" type="text/javascript">
dojo.require("dojo.cldr.monetary");
var o = dojo.cldr.monetary.getData("JPY");
var s = "";
for (var f in o) {
s += f + "=" + o[f] + ",";
}
alert(s);
</script>
</head>
<body></body>
</html>
Get first week
<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/"
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script language="JavaScript" type="text/javascript">
dojo.require("dojo.cldr.supplemental");
alert(dojo.cldr.supplemental.getFirstDayOfWeek("us"));
</script>
</head>
<body></body>
</html>
Get week end day
<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/"
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script language="JavaScript" type="text/javascript">
dojo.require("dojo.cldr.supplemental");
var o = dojo.cldr.supplemental.getWeekend("us");
var s = "";
for (var f in o) {
s += f + "=" + o[f] + ",";
}
alert(s);
</script>
</head>
<body></body>
</html>