Table of contents
  1. 1. Usage Restrictions
  2. 2. Parameters
  3. 3. Result
  4. 4. Samples
date.IsSameWeek(first : str, second : str?) : bool

Check if first date-time and the second date-time fall on the same week.

Usage Restrictions

9.02 or later.

Parameters

Name Type Description
first str first date time string
second str second date time string

Result

True, if the two dates fall in the same week, false otherwise

Samples

  Output

To display the timezone of the current datetime object:

date.IsSameWeek(
  date.Parse("20090401","yyyyMMdd"),
  date.Parse("20090404","yyyyMMdd")
);
true

 

Tag page
You must login to post a comment.