2017年8月8日

SQL - 在SQL語法中轉換歐洲日期格式成Datetime

歐洲的時間格式為dd/mm/yyyy,若將API來的資料直接以string方式存入資料表中是沒問題的,就是以字串方式存入,但是若要用該時間欄位來撈資料時就變麻煩了,因為直接Convert(datetime,時間欄位) > '2017/7/1 00:00:00' 會造成以下錯誤

The conversion of a varchar data type to a datetime data type resulted in an out-of-range value. 

<Javascript> How to uncompressed GZIP at front-end using Javascript

It's been a while I haven't share my coding work. In this article I would like to share how to receive a Gzip file via stream, unzip...