Exemplo n.º 1
0
    private void getBirthdateAndSetSPUser()
    {
        if (checkIfValueHasBeenSet(birthdate))
        {
            string   pattern = "yyyy/MM/dd";
            DateTime parsedDate;

            DateTime.TryParseExact(birthdate, pattern, null, DateTimeStyles.None, out parsedDate);

            SPUser.SetBirthdate(parsedDate);
        }
    }