dayofyear to date

NJDude

Expert
Licensed User
Longtime User
Something like this:
B4X:
Dim Year, Date As Long
Dim Day As Int
                        
Year = DateTime.DateParse("01/01/2012")
            
Day = 15
            
Date = DateTime.Add(Year, 0, 0, Day - 1)
            
Msgbox("The " & Day & "th day is " & DateTime.Date(Date), "")
 
Upvote 0
Top