Home Cooker Classes Others Rice CookerGX
Classes  >  datetime  >  Less(datetime)
datetime class : Less(datetime) method

Description

Gets the value that indicates whether the argument advanced than the invoker.

Syntax

datetimeInstance.Less(datetime argDatetime)

Arguments

ClassNameDescription
datetimeargDatetimeA datetime type instance that is compared.

Return value

ClassDescription
boolIf the argument advanced than the invoker, returns true. Otherwise, return false.

Sample code

datetime dt = new datetime(2013,12,14,10,10,9);

datetime dt2 = new datetime(2013,12,14,10,10,8);

datetime dtt = new datetime(2013,12,14,10,10,10);

bool less1 = dt.Less(dt);//false

bool less2 = dt.Less(dt2);//false

bool less3 = dt.Less(dtt);//true

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.