PPJ Desktop API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Runtime.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
    • Controls
      • SalActiveX
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
        • BorderStyle
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
        • LineStyle
        • LineType
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTableWindow
        • CellType
        • FocusRowStyle
        • RowsSizingStyle
        • SalTableColumn
        • SalTableColumnCollection
        • SalTableRow
        • SalTableRowCollection
        • SalTableWindowBase
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
      • SalRibbonStatusBar
    • Interfaces
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalType
      • ISalAccessory
      • ISalMenu
      • ISalWindow
    • Internet
      • FtpEventArgs
      • FtpEventHandler
      • HttpEventArgs
      • HttpEventHandler
      • SalFtpClient
      • SalHttpClient
      • SalQuickFTP
      • SalQuickHTTP
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuColumn
      • SalMenuItem
      • SalMenuRow
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • QO
      • SalQuickHTML
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
      • SalQuickToolTipCheckBox
      • SalQuickToolTipChildTable
      • SalQuickToolTipComboBox
      • SalQuickToolTipDataField
      • SalQuickToolTipHScrollBar
      • SalQuickToolTipListBox
      • SalQuickToolTipMultilineField
      • SalQuickToolTipOptionButton
      • SalQuickToolTipPicture
      • SalQuickToolTipPushButton
      • SalQuickToolTipRadioButton
      • SalQuickToolTipTableWindow
      • SalQuickToolTipVScrollBar
      • SalToolTipManager
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Runtime.DDE.49
    • General
      • SalDDE
  • PPJ.Runtime.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisColorPalette
      • VisColorPaletteBase
      • VisColorPaletteDropDown
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisRichEdit
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Runtime.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSeparator
      • XSalSeparatorDoubleRaised
      • XSalSeparatorEtched
      • XSalSeparatorInvisible
      • XSalSeparatorSingleRaised
      • 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)
  • ToDateTime()
  • WeekBegin()
  • Weekday()
  • Year()
  • YearBegin()
  • Used By
  1. PPJ.Runtime.49
  2. Types

SalDateTime

PPJ.Runtime.SalDateTime

PreviousSalBooleanNextSalFileHandle

Last updated 2 years ago

Namespace: PPJ.Runtime

Assembly: PPJ.Runtime.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
Public Structure SalDateTime
    Implements ValueType, IComparable, IConvertible, IFormattable, INullable, ISalType, IXmlSerializable

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 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 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.

Returns the PC's current date/time.

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.

Sets the modification date and time of the specified file.

Converts a string to a date/time value.

Stores a DateTime item in the safearray.

Multidimensional safe array

DateTime value property.

DateTime value property.

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: .

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
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.DateYear
Sal.DateYearBegin
SalDateTime.Current
SalDateTime.WeekBegin
SalFileHandle.SetDateTime
SalString.ToDate
SalSafeArray.PutDate
SalSafeArray.PutDate2D
SalSafeArray.PutDateMD
SalVariant.SetDate
SalDataField.DateTime
SalTableColumn.DateTime
Vis.TblFindDateTime
Vis.FileSetDateTime
Vis.ArrayFillDateTime
Vis.ArrayFindDateTime
VisCalendar.IsSelectedDate
VisCalendar.SetFocusDate
VisCalendar.SelectDate
VisCalendar.SetSpecialDate
VisCalendar.IsSpecialDate
VisCalendarDropDown.Value
XSal.ZipCreateFile
XSal.StrFormatDateTime
XSal.StrFormatDateTimeX