func NewSecurityDate(dateID string, date time.Time) *SecurityDateDataElement {
	var id string
	if dateID == SecurityTimestamp {
		id = "1"
	} else if dateID == CertificateRevocationTime {
		id = "6"
	} else {
		panic(fmt.Errorf("DateIdentifier must be 'STS' or 'CRT'"))
	}
	s := &SecurityDateDataElement{
		DateIdentifier: NewAlphaNumeric(id, 3),
		Date:           NewDate(date),
		Time:           NewTime(date),
	}
	s.DataElement = NewDataElementGroup(securityDateDEG, 3, s)
	return s
}
// NewSecurityDate creates a new SecurityDate for the given type
NewSecurityDate creates a new SecurityDate for the given type
// NewSecurityDate creates a new SecurityDate for the given type
func NewSecurityDate(dateID string, date time.Time) *SecurityDateDataElement {
	var id string
	if dateID == SecurityTimestamp {
		id = "1"
	} else if dateID == CertificateRevocationTime {
		id = "6"
	} else {
		panic(fmt.Errorf("DateIdentifier must be 'STS' or 'CRT'"))
	}
	s := &SecurityDateDataElement{
		DateIdentifier: NewAlphaNumeric(id, 3),
		Date:           NewDate(date),
		Time:           NewTime(date),
	}
	s.DataElement = NewDataElementGroup(securityDateDEG, 3, s)
	return s
}
func NewSecurityDate ( dateID string , date time . Time ) * SecurityDateDataElement { var id string if dateID == SecurityTimestamp { id = " " } else if dateID == CertificateRevocationTime { id = " " } else { panic ( fmt . Errorf ( " " ) ) } s := & SecurityDateDataElement { DateIdentifier : NewAlphaNumeric ( id , 3 ) , Date : NewDate ( date ) , Time : NewTime ( date ) , } s . DataElement = NewDataElementGroup ( securityDateDEG , 3 , s ) return s }
NewSecurityDate creates a new SecurityDate for the given type
NewSecurityDate creates a new SecurityDate for the given type