using System;
using System.Collections.Generic;
using System.Text;
using FastReport.Utils;
namespace FastReport.Format
{
///
/// Defines how date values are formatted and displayed.
///
public class DateFormat : CustomFormat
{
#region Public Methods
///
public override FormatBase Clone()
{
DateFormat result = new DateFormat();
result.Format = Format;
return result;
}
internal override string GetSampleValue()
{
return FormatValue(new DateTime(2007, 11, 30, 13, 30, 0));
}
#endregion
///
/// Initializes a new instance of the DateFormat class with default settings.
///
public DateFormat()
{
Format = "d";
}
}
}