diff --git a/AUTHORS b/AUTHORS
index e22ee45..8190571 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -243,6 +243,7 @@ answer newbie questions, and generally made Django that much better:
     Jannis Leidel <jl@websushi.org>
     Christopher Lenz <http://www.cmlenz.net/>
     lerouxb@gmail.com
+    Justin Lilly <justinlilly@gmail.com>
     Waylan Limberg <waylan@gmail.com>
     limodou
     Philip Lindborg <philip.lindborg@gmail.com>
diff --git a/django/views/generic/date_based.py b/django/views/generic/date_based.py
index a745559..f2334ec 100644
--- a/django/views/generic/date_based.py
+++ b/django/views/generic/date_based.py
@@ -116,7 +116,7 @@ def archive_month(request, year, month, queryset, date_field,
     """
     if extra_context is None: extra_context = {}
     try:
-        date = datetime.date(*time.strptime(year+month, '%Y'+month_format)[:3])
+        date = datetime.date(*time.strptime("%s-%s" % (year, month), '%s-%s' % ('%Y', month_format))[:3])
     except ValueError:
         raise Http404
 
@@ -231,7 +231,7 @@ def archive_day(request, year, month, day, queryset, date_field,
     """
     if extra_context is None: extra_context = {}
     try:
-        date = datetime.date(*time.strptime(year+month+day, '%Y'+month_format+day_format)[:3])
+        date = datetime.date(*time.strptime("%s-%s-%s" % (year, month, day), '%s-%s-%s' % ('%Y', month_format, day_format))[:3])
     except ValueError:
         raise Http404
 
@@ -301,7 +301,7 @@ def object_detail(request, year, month, day, queryset, date_field,
     """
     if extra_context is None: extra_context = {}
     try:
-        date = datetime.date(*time.strptime(year+month+day, '%Y'+month_format+day_format)[:3])
+        date = datetime.date(*time.strptime('%s-%s-%s' % (year, month, day), '%s-%s-%s' % ('%Y', month_format, day_format))[:3])
     except ValueError:
         raise Http404
 
