Advertisement
IanosStefanCristian

Date Format

Mar 9th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. using System;
  2. public class Program
  3. {
  4. public static string FormatDate(string date)
  5. {
  6. DateTime inputDate = DateTime.Parse(date);
  7. return inputDate.ToString("yyyydMM");
  8. }
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement