diff --git a/ignite-html-select.js b/ignite-html-select.js
index 3b57bc4..9852f6e 100644
--- a/ignite-html-select.js
+++ b/ignite-html-select.js
@@ -15,6 +15,16 @@ import { IgniteTemplate } from "../ignite-html/ignite-template.js";
//Generate html and populate the template with it.
var html = '';
+ //If to is 0, null, or undefined, use the current year.
+ if (to == 0 || !to) {
+ to = new Date().getFullYear();
+ }
+
+ //If from is negative, adjust it with the to year.
+ if (from < 0) {
+ from += to;
+ }
+
if (placeholder) {
html += ``;
}