This code gets the data from the table to show in a table for the user
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace Form
{
public class RelUse
{
public DateTime Date { get; set; }
}
public RelUse()
{
atribuiValores(row);
}
public RelUse(DataRow row)
{
assignValues(row);
}
protected void assignValues(DataRow row)
{
this.Date = Convert.ToDateTime(row["Date"]);
}
}
It gets the date how it is in the database yyyy-mm-dd hh:mm:ss. Can I do some method in the DateTime to change the formatting of the date to dd/mm/yyyy hh:mm:ss