- Home /
 
               Question by 
               ThumbStorm · May 24, 2013 at 01:54 PM · 
                timedatetimedateday  
              
 
              putting the date into a variable
Hello,
I'm trying the get the day of the year from the current system and put that into a variable. It will be used at start up to award the player a prize for playing the game once a day.
I have found how to get the date info using System.DateTime.Now, but don't know how to get only the current day of the year.
Also if it will on ios, android and pc/mac.
Any help is appreciated. Thanks
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Stormizin · May 24, 2013 at 01:56 PM
Awesome, it works great! Dou you know if this will work on all platforms (ios,android,ect..)?
I think will work fine, w/o errors, the unity compile the C# code to all function platforms well.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                