看你用什么语言,有两个思路:1.替换-为空:比如javastr.replaceAll("-","")2.正则抓取数字组合: 比如javastr.replaceAll("(\\d{4})-(\\d{2})-(\\d{2})","$1$2$3")其他语言,类似
$time = '2010-03-15';$time = date('Ymd',strtotime($time));?>