Skip to content

Instantly share code, notes, and snippets.

@lucasemanuel
Created June 11, 2019 19:12
Show Gist options
  • Save lucasemanuel/5c59e97d897b8efaae1b78ebe2920d4d to your computer and use it in GitHub Desktop.
Save lucasemanuel/5c59e97d897b8efaae1b78ebe2920d4d to your computer and use it in GitHub Desktop.
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