StevanovicMilan

Vežba 07, Zadatak 4

Dec 1st, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace Vezba_07_2017_Zad4
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
  21.         {
  22.  
  23.  
  24.             textBox1.Text = String.Format("Dan tvog rodjenja je {0} \r\n Od tvog rodjenja proslo je tacno {1} dana", dateTimePicker1.Value.DayOfWeek.ToString(), (DateTime.Now - dateTimePicker1.Value).Days.ToString());
  25.            
  26.         }
  27.     }
  28. }
Add Comment
Please, Sign In to add comment