That is not working. Using that method caused the above error in the picture.
what is type of from date?
Type of From Date is DateTime.
Did you manage to resolve it?
Hi @Raghuveer_M
Try this
datetimeVar.ToShortDateString()
Hi Rghuveer M
You can use this:
dateonly.fromDatetime(now)
or if you have a string
dateonly.fromDatetime(datetime.parseexact(str_yourDateVariable,“MM/dd/yyyy HH:mm:ss zzz”,nothing,nothing))
and adjust the format to your situation
Try
System.DateOnly.FromDateTime(Date.Parse(AppVariables.AppVariable.str_yourDateVariable))