coba ini:
CONVERT(DATETIME, CONVERT(NVARCHAR, YYYYMMDD))
Misalnya:
SELECT CONVERT(DATETIME, CONVERT(NVARCHAR, 20100401))
Hasil dalam:
2010-04-01 00:00:00.000
coba ini:
CONVERT(DATETIME, CONVERT(NVARCHAR, YYYYMMDD))
Misalnya:
SELECT CONVERT(DATETIME, CONVERT(NVARCHAR, 20100401))
Hasil dalam:
2010-04-01 00:00:00.000