Guest User

Untitled

a guest
Aug 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. DateTime formats C#
  2. string format = "dd.mm.yy";
  3. date=DateTime.ParseExact (current.Substring(aiRule.AiLength), format, CultureInfo.InvariantCulture);
  4.  
  5. string Format = "dd.MM.yy"
  6.  
  7.  
  8. mm is for showing minutes
  9.  
  10. MM is for showing months..
  11.  
  12. string format = "dd.MM.yy";
  13. string date = "27.10.11";
  14. DateTime result;
  15. result = DateTime.ParseExact(date, format, CultureInfo.InvariantCulture);
Add Comment
Please, Sign In to add comment