Date and time functions

newDateTime(DateTime.Today.Year.DateCurrentPerson.Month,DateCurrentPerson.Day)

what actually happening here.

and is there any proper explanation where i can understand all date time related things.

its creating a new Datetime variable with following parameters:

  • current year,
  • a datimevar: DateCurrentPerson’s Month,
  • a datimevar: DateCurrentPerson’s Day

Maybe its a copy and paste issue, but year and month argument is to be sepreated by comma and not by dot

newDateTime(DateTime.Today.Year , DateCurrentPerson.Month,DateCurrentPerson.Day)

1 Like

@ankur_kaushik2

Have a look below thread.

1 Like

DateCurrentPerson.Month,DateCurrentPerson.Day)

with this part of expression,is it trying to fetch only month and day from complete datedate?

Yes, as a datetime offers these properties along with others

grafik
Screenshot done during a debug within immediate panel. A good option to explore things and Apis

1 Like

that was nice information, i will use it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.