read Time and Date

Hi there, iam a freshman in using UNITY3D and i need for a project to read out the system time and date of the computer my game is running on. is there any way in java, c, or boo to do this?

lots of thanks ThisIsTom

Yes, you have access to most of the .net classes including the System.DateTime structure, and more specifically you can get the current date and time using the DateTime.now property.

This may help. Try using variables like these and see how it goes. You do have to

theTime = System.DateTime.Now.ToString("hh:mm:ss"); theDate = System.DateTime.Now.ToString("MM/dd/yyyy"); theMonth = System.DateTime.Now.get_Month(); theDay = System.DateTime.Now.get_Day();

@dmitry-kozyr try this
PlayerPrefs.SetString(“date_time”, System.DateTime.Now.ToString(“yyyy/MM/dd HH:mm:ss”));
Debug.Log(PlayerPrefs.GetString(“date_time”));