SetDateOfBirth with user Input in Unity

0 votes
Hello Team,

I want to know what is the format of DateTime() and how to use it.

I am using like below, year, month and date are input fields which player has to fill. Taking that inputs I am trying to update user's DOB:

profileObj.SetDateOfBirth (new DateTime (System.Convert.ToInt32 (year), System.Convert.ToInt32 (month), System.Convert.ToInt32 (date)));

Am I doing something wrong? What's the right way to do this?

Thanks
closed with the note: Closed
asked Feb 9, 2015 in App42 Cloud API-BaaS by somnath.chowdhury86 (10 points)
closed Feb 9, 2015 by sushil
Resolved, It was my mistake. Year, month, day these are text fields. I forget to use, year.text, month.text, date.text. Silly mistake.

Thanks.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...