PPJ Web API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Web.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
      • stdole_Font
      • stdole_Picture
      • stdole_StdFont
      • stdole_StdPicture
    • Controls
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTimer
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
    • Interfaces
      • ISalType
      • ISalAccessory
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalListItem
      • ISalMenu
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalWindow
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuItem
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Web.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveComboBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Web.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Constructors
  • SalDateTime(x)
  • SalDateTime(year, month, day)
  • SalDateTime(year, month, day, hour, minute, second)
  • SalDateTime(year, month, day, hour, minute, second, milliseconds)
  • Properties
  • Current
  • IsNull
  • Ticks
  • TreatMinValueAsNull
  • Value
  • Methods
  • AddDays(days)
  • Compare(x, y)
  • CompareTo(obj)
  • CompareTo(x)
  • Day()
  • Hour()
  • Minute()
  • Month()
  • MonthBegin()
  • Quarter()
  • QuarterBegin()
  • Second()
  • Subtract(x)
  • ToClientTime()
  • ToDateTime()
  • WeekBegin()
  • Weekday()
  • Year()
  • YearBegin()
  • Used By
  1. PPJ.Web.49
  2. Types

SalDateTime

PPJ.Runtime.SalDateTime

PreviousSalBooleanNextSalFileHandle

Last updated 2 years ago

Namespace: PPJ.Runtime

Assembly: PPJ.Web.49 (4.9.0.0)

SAL Date/Time basic type. It wraps .NET native DateTime type. SalDateTime objects are automatically cast to and from DateTime.

public struct SalDateTime : ValueType, IComparable, IConvertible, IFormattable, INullable, ISalType, IXmlSerializable, IWisejSerializable
Public Structure SalDateTime
    Implements ValueType, IComparable, IConvertible, IFormattable, INullable, ISalType, IXmlSerializable, IWisejSerializable

Constructors

SalDateTime(x)

Creates a new SalDateTime.

Name
Type
Description

x

DateTime initial value

SalDateTime(year, month, day)

Create a new SalDateTime

Name
Type
Description

year

month

day

SalDateTime(year, month, day, hour, minute, second)

Create a new SalDateTime

Name
Type
Description

year

month

day

hour

minute

second

Create a new SalDateTime

Name
Type
Description

year

month

day

hour

minute

second

milliseconds

Properties

Methods

Add days or fraction of days to the date.

Parameter
Type
Description

days

Compares two SalDateTime

Parameter
Type
Description

x

y

Compare to object

Parameter
Type
Description

obj

Compare to datetime

Parameter
Type
Description

x

Returns the day portion (1 to 31) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

Returns the hour portion (0 to 23) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

Returns the minute portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

Returns the month portion (1 to 12) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

Returns the date of the first day of the month or it returns DATETIME_Null if the value you specify is null. For example, if dtDateTime is December 25, 1992, SalDateMonthBegin returns December 1, 1992.

Returns the quarter of the year (1 to 4) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

Returns the date of the first day of the quarter of a date/time value or it returns DATETIME_Null if the value you specify is null.

Returns the seconds portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

Subtract SalDateTime from SalDateTime.

Parameter
Type
Description

x

Returns the date/time adjusted to the client's time zone.

Returns the DateTime value.

Returns the date of the previous Monday or the current day if it is a Monday or it returns DATETIME_Null if the value you specify is null.

Returns the day of the week as a number between 0 and 6 or returns -1 if you specify DATETIME_Null as a parameter. 0 represents Saturday, 1 represents Sunday, and so on.

Returns the year portion of a date or returns -1 if you specify DATETIME_Null as a parameter.

Returns the date of the first day of the year or it returns DATETIME_Null if the value you specify is null.

Used By

Name
Description

Returns the date/time constructed from the parameters year, nMonth, nDay, nHour, minute, and nSecond.

Returns the PC's current date/time.

Returns the date of the first day of the quarter of a date/time value or it returns DATETIME_Null if the value you specify is null.

Sets the modification date and time of the specified file.

Converts a string to a date/time value.

DateTime value property.

DateTime value property.

Stores a DateTime item in the safearray.

Multidimensional safe array

SalDateTime(year, month, day, hour, minute, second, milliseconds)

Current

: Returns the PC's current date/time.

IsNull

: Checks if this SalDateTime object contain a null value.

Ticks

: Returns the number of ticks.

TreatMinValueAsNull

: Gets or sets a property that enables the automatic conversion of DateTime.MinValue SalDateTime.Null.

Value

: Returns the inner DateTime value

AddDays(days)

Returns: .

Compare(x, y)

Returns: .

CompareTo(obj)

Returns: .

CompareTo(x)

Returns: .

Day()

Returns: .

Hour()

Returns: .

Minute()

Returns: .

Month()

Returns: .

MonthBegin()

Returns: . dtMonthBegin

Quarter()

Returns: . nQuarter

QuarterBegin()

Returns: . dtQuarterBegin

Second()

Returns: . nSeconds

Subtract(x)

Returns: .

ToClientTime()

Returns: .

ToDateTime()

Returns: .

WeekBegin()

Returns: . dtWeekBegin

Weekday()

Returns: .

Year()

Returns: .

YearBegin()

Returns: . dtYearBegin

SalDateTime
Boolean
Int64
Boolean
DateTime
SalDateTime
Int32
Int32
Int32
SalNumber
SalNumber
SalNumber
SalNumber
SalDateTime
SalNumber
SalDateTime
SalNumber
Double
SalDateTime
DateTime
SalDateTime
SalNumber
SalNumber
SalDateTime
DateTime
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Double
SalDateTime
SalDateTime
Object
SalDateTime
SalDateTime
Sal.DateConstruct
SalDateTime.Current
SalDateTime.QuarterBegin
SalFileHandle.SetDateTime
SalString.ToDate
SalDataField.DateTime
SalTableColumn.DateTime
SalSafeArray.PutDate
SalSafeArray.PutDate2D
SalSafeArray.PutDateMD
SalVariant.SetDate
Vis.TblFindDateTime
Vis.FileSetDateTime
Vis.ArrayFillDateTime
Vis.ArrayFindDateTime
VisCalendar.IsSelectedDate
VisCalendar.SetFocusDate
VisCalendar.SelectDate
VisCalendar.SetSpecialDate
VisCalendar.IsSpecialDate
VisCalendarDropDown.DateTime
XSal.ZipCreateFile
XSal.StrFormatDateTime
XSal.StrFormatDateTimeX