根据你的数据库 用format或者to_char 百度一下转换过来就好了
可以参数设置格式为yyyyMMdd
2.数据库转换
SQL server:cast('20160601' as datetime)
SQLite :