<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Returns the date for the first day of the week</Title>
      <Shortcut>Returnsthedateforthefirstdayoftheweek</Shortcut>
      <Description>Returns the date for the first day of the week [C#]</Description>
      <Author>Todd Knudsen</Author>
      <HelpUrl>/PreviewSnippet.aspx?SnippetID=ef6f3eac-cccb-4fe2-bc7b-debab8c9d6ff</HelpUrl>
      <SnippetTypes>
        <SnippetType>SurroundsWith</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <Code Language="csharp"><![CDATA[        public DateTime FirstDayWeek(DateTime date)
        {
            return date.AddDays(-(double)date.DayOfWeek);
        }]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>