function cdfepoch32sql,str
	; Function converts a date/time string in CDF epoch0 format
	; to the date/time string format needed by SQL
	; SQL format: '2001-12-12 05:06:13.305'
	; CDF epoch3: '2001-12-12T05:06:13.305Z'

	strput,str," ",10		; Get rid of the 'T'
	str1 = strmid(str,0,23)	; and the 'Z'
	;print,'In cdfepoch32sql: ',str1
	return,str1

end