FarPoint.Web.Spread.DateTimeCellType datecell = new FarPoint.Web.Spread.DateTimeCellType();
datecell.ErrorMessage = "Need a date!!!";
datecell.FormatString = "d";
FpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
FpSpread1.Sheets[0].Cells[0, 0].Value = System.DateTime.Now.ToOADate();
FpSpread1.Sheets[0].Columns[0].Width = 175;
Dim datecell As New FarPoint.Web.Spread.DateTimeCellType()
datecell.ErrorMessage = "Need a date!!!"
datecell.FormatString = "d"
FpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
FpSpread1.Sheets(0).Cells(0, 0).Value = System.DateTime.Now.ToOADate()
FpSpread1.Sheets(0).Columns(0).Width = 175