Skip to content

Instantly share code, notes, and snippets.

@Mahno74
Last active July 6, 2021 10:38
Show Gist options
  • Save Mahno74/3e966dafcb24803ba63ade302e06285f to your computer and use it in GitHub Desktop.
Save Mahno74/3e966dafcb24803ba63ade302e06285f to your computer and use it in GitHub Desktop.
Получаем первый день года
dateTimePicker1.Value = DateTime.Now.AddDays(-DateTime.Now.DayOfYear + 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment