DataToSQLDateTimeOffset Method
Converts a value to a date, time, and time offset string for SQL.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static string ToSQLDateTimeOffset(
Object value,
string datePattern = "yyyy-MM-dd HH:mm:ss zzz",
string dateSymbol = "#",
bool minValueInYear1900 = true
)
Public Shared Function ToSQLDateTimeOffset (
value As Object,
Optional datePattern As String = "yyyy-MM-dd HH:mm:ss zzz",
Optional dateSymbol As String = "#",
Optional minValueInYear1900 As Boolean = true
) As String
- value Object
- Value to convert.
- datePattern String (Optional)
- Day pattern.
- dateSymbol String (Optional)
- Date symbol.
- minValueInYear1900 Boolean (Optional)
- Indicates if the minimum value is the year 1900.
StringString with the value converted.
Can return or CAST('yyyy-MM-dd HH:mm:ss zzz' AS DateTimeOffset).