2009年11月5日 星期四

sql server 取date 及 time

select convert(varchar(10) , getdate(),112 ) as myDate, convert(varchar(8),getdate(),8) as myHour
回傳:20091105 17:44:57

select convert(varchar(10) , getdate(),121 ) as myDate, convert(varchar(8),getdate(),8) as myHour

回傳:2009-11-05 17:44:57


沒有留言:

張貼留言

pdf.js 無法顯示部份字

有個檔案在pdf viewer套件中無法顯示內容,但下載檔案後使用工具又可以正常顯示。 本來以為是套件版本太舊的原因,於是去下載pdf viewer套件 https://github.com/mozilla/pdf.js 更新後還是一樣。 覺得應是字型缺漏的問題,於是用PDF-X...