Guest User

Untitled

a guest
Jan 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // Returns Jan 31, 2012
  2. myDateTimeObject.ToString("MMM dd, yyyy");
  3.  
  4. // Returns 31 January, 2012
  5. myDateTimeObject.ToString("dd MMMM, yyyy");
  6.  
  7. Console.WriteLine(DateTime.Now.ToString("d-MMM-yy"));
  8.  
  9. Console.WriteLine(DateTime.Now.ToString("d-MM-yy"));
  10.  
  11. Console.WriteLine(DateTime.Now.ToString("d-MM-yyyy"));
Add Comment
Please, Sign In to add comment