from datetime import date, datetime, timedelta

from django.core.exceptions import ValidationError


def validate_approximatedate(date):
    if date.month == 0:
        raise ValidationError(
            'Event date can\'t be a year only. '
            'Please, provide at least a month and a year.'
        )


def validate_event_date(e_date):
    today = date.today()
    event_date = datetime.date(datetime.strptime('{0}-{1}-{2}'.format(e_date.year, e_date.month, e_date.day),
                                                 '%Y-%m-%d'))
    if event_date - today < timedelta(days=90):
        raise ValidationError('Your event date is too close. '
                              'Workshop date should be at least 3 months (90 days) from now.')

@@ -23,18 +23,8 @@
 ate,
- datetime,
  tim
@@ -30,16 +30,16 @@
 medelta%0A
+
 %0Afrom dj
@@ -109,24 +109,26 @@
 oximatedate(
+e_
 date):%0A    i
@@ -129,16 +129,18 @@
 %0A    if 
+e_
 date.mon
@@ -365,193 +365,54 @@
     
-event_date = datetime.date(datetime.strptime('%7B0%7D-%7B1%7D-%7B2%7D'.format(e_date.year, e_date.month, e_date.day),%0A                                                 '%25Y-%25m-%25d'))%0A    if event_date
+if date(e_date.year, e_date.month, e_date.day)
  - t

Clean up validate_event_date