Closed fukemy closed 2 years ago
Hi, i want to set empty value for DateInlineRow when the date is nil from server, i tried but not working, my sample code below:
<<< DateInlineRow() { $0.title = Language.get("End date") $0.dateFormatter?.locale = .current $0.dateFormatter?.dateFormat = "HH:mm dd/MM/yyyy" $0.tag = "end_date_row" if let endDate = taskDetail?.task?.Info?.RealEndDate{ $0.value = Date(milliseconds: Int(endDate)) }else{ $0.value = nil } }
But the date is still showing like 08:00 01/01/1970
my bad, my RealEndDate's property default = 0
Hi, i want to set empty value for DateInlineRow when the date is nil from server, i tried but not working, my sample code below:
But the date is still showing like 08:00 01/01/1970