added MyDate class and minor changed event_dialog