0
簡單的問題。我有一些骯髒的解決方案,但無法弄清楚一個乾淨,健壯的解決方案。問題是我有dayofyear(從SQL Server),我想將其轉換爲NSDate。詳細介紹:dayofyear到NSDate目標c
int dayofyear = 205 //I have this
NSDate* date = ??something by adding dayofyear to 1/1/currentyear(2013)??
//must have : date = 07/25/2013
感謝
阿爾達
+1用於獲取啓動日曆單元的日期。我不知道這種方法,謝謝! :-) –
@LukasKukacka:是的,這很方便。使用'interval'參數你也會得到期間的結束,例如當天開始/結束日期。 –
尚未實現但看起來很完美。謝謝! – ardavar