string to date convert

Hi All,

Can anyone help me convert this string into date format so that I can inject into data base

"20171222"

string format is "yyyyMMdd" I need to convert to date format yyyy-MM-dd so that it can be added to database

  Discussion posts and replies are publicly visible

Parents Reply Children