produce sn from datetime base