Gets or sets a DateTimeFormatInfo that defines the format of displaying dates and times.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Property DateTimeFormat As DateTimeFormatInfo |
Property Value
DateTimeFormatInfo object containing the information for formatting date-time values
Example
C# | Copy Code |
---|
<style>.CssStyle1
{
FONT: 700 12pt verdana; COLOR: yellow
}
</style>
System.Globalization.DateTimeFormatInfo dtf = new System.Globalization.DateTimeFormatInfo();
dtf.LongDatePattern = "D";
dtf.ShortDatePattern = "M/d/yyyy";
FarPoint.Web.Spread.GeneralCellType g = new FarPoint.Web.Spread.GeneralCellType();
g.CssClass = "CssStyle1";
g.DateTimeFormat = dtf;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g;
|
Visual Basic | Copy Code |
---|
<style>.CssStyle1
{
FONT: 700 12pt verdana; COLOR: yellow
}
</style>
Dim dtf As New System.Globalization.DateTimeFormatInfo
dtf.LongDatePattern = "D"
dtf.ShortDatePattern = "M/d/yyyy"
Dim g As New FarPoint.Web.Spread.GeneralCellType
g.CssClass = "CssStyle1"
g.DateTimeFormat = dtf
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = g |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also