I would like to change the DateTime format from asp.net format to SQL Datetime using if statement. How can I do this ?
 public DateTime AvailableSince
{
    get
    {
        return _availableSince;
    }
    set
    {
        _availableSince = value;
    }
}