CalDavSynchronizer.ThoughtvCardWorkaround.vCardImprovedWriter.BuildProperties_BDAY C# (CSharp) Метод

BuildProperties_BDAY() приватный Метод

Builds the BDAY property.
private BuildProperties_BDAY ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
properties vCardPropertyCollection
card Thought.vCards.vCard
Результат void
      private void BuildProperties_BDAY(
          vCardPropertyCollection properties,
          vCard card)
      {

        // The BDAY property indicates the birthdate
        // of the person.  The output format here is based on
        // Microsoft Outlook, which writes the date as YYYMMDD.
        // FIXES DateFormat with ToString

        if (card.BirthDate.HasValue)
        {

          vCardProperty property =
              new vCardProperty("BDAY", card.BirthDate.Value.ToString ("yyyy-MM-dd"));

          properties.Add(property);
        }

      }