DateTimePartExpression

Overview

The DateTimePartExpression class represents a call to the SQL function that extracts a part of given date like year, month etc in Dynamic Where expressions.

Date parts that can be extracted:

 
Year Month Week Day Hour Minute Second

Location

DataAbstract.js

Instance Methods


constructor DateTimePartExpression

Creates a new instance of the DateTimePartExpression class.

function constructor DateTimePartExpression(node, datePart)

Parameters:

  • node: Expression
  • datePart: Part of date or time

toXML

Returns a string with the XML representation of the expression

function toXML()