Created
June 11, 2019 19:12
-
-
Save lucasemanuel/5c59e97d897b8efaae1b78ebe2920d4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace GPScrum1 | |
{ | |
class Helpers | |
{ | |
public static DateTime formataData(string data) | |
{ | |
int[] dataArray = Array.ConvertAll<string, int>(data.Split('/'), int.Parse); | |
DateTime dataFormatada = new DateTime(dataArray[2], dataArray[1], dataArray[0]); | |
return dataFormatada; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment