Skip to content

Instantly share code, notes, and snippets.

@ogaty
Last active October 27, 2022 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogaty/3675032854aed7f2c5bb1264edb8d34c to your computer and use it in GitHub Desktop.
Save ogaty/3675032854aed7f2c5bb1264edb8d34c to your computer and use it in GitHub Desktop.
NSdate
                DateTime date = new DateTime(jsonObj.birth_year, jsonObj.birth_month, jsonObj.birth_day, 12, 0, 0);
                DateTime reference = new DateTime(2001, 1, 1, 0, 0, 0);
                NSDate dd = NSDate.FromTimeIntervalSinceReferenceDate(
                    (date - reference).TotalSeconds);
                event_date.DateValue = dd;
            DateTime d = DateTime.Parse(event_date.DateValue.ToString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment