Can anyone explain Datetime management codeunit 416?

vikkivikki Member Posts: 28
Can anyone explain Datetime management codeunit 416?
Thanks

Comments

  • WaldoWaldo Member Posts: 3,412
    First of all, this codeunit does not exist anymore in 5.0 . If it was replaced or not, I don't know.

    Second, the functions are just calculation-functions which can help you working with dates, times and decimal representations of datetimes (any datetime can be representated as a decimal).

    For example:
    DateTime: will give you the datetime-decimal of a combination date and time... .
    Datetime2Time: returns a time from a datetime-decimal variable.
    Datetime2Date: returns a date from a datetime-decimal variable.
    Datetime2Text: returns the datetime-decimal in text format.
    Text2Datetime: converts the text into the datetime-decimal.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Revolution1210Revolution1210 Member Posts: 161
    As Waldo said, Codeunit 416 Datetime Mgt. has been removed as of NAV 5.00

    The C/AL functions CREATETIME, DT2TIME and DT2DATE should be used instead.

    See here for code examples
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
Sign In or Register to comment.