Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Current Date

Hi.

 

I'm try to get the duration days from a column with a date and the current date.

I'm use the function

 

But I have the error

 

Can you help me please

 

 

  • Hi Anonymous ,

    Please try this:

    Duration.Days (DateTime.Date(DateTime.LocalNow()) - [Fecha de apertura])

    You forgot a parenthesis on DateTime.LocalNow(). β€ŒπŸ˜Šβ€Œ

    Best Regards,

    Eduardo

2 Replies

  • Hi Anonymous ,

    Please try this:

    Duration.Days (DateTime.Date(DateTime.LocalNow()) - [Fecha de apertura])

    You forgot a parenthesis on DateTime.LocalNow(). β€ŒπŸ˜Šβ€Œ

    Best Regards,

    Eduardo

    • Anonymous's avatar
      Anonymous
      Not applicable

      Excelent, it's done.
      Thanks