How to convert char to date or time type?

Hi,

How to convert char to date or time type?

e.g.

char:“20150828” is converted to date:2015.08.28

char:“23:47:24” is converted to time:23:47:24.000

Is there any function to make this?

q)“D”$“20150828”
2015.08.28
q)“T”$“23:47:24”
23:47:24.000

it works, thanks!

? 2015?8?28??? UTC+8??12:19:30?Charles Skelton???

q)“D”$“20150828”
2015.08.28
q)“T”$“23:47:24”
23:47:24.000