Options

How to solve problem with datediff function when sending datetime difference to navision from sql?

Vesna_1Vesna_1 Member Posts: 23
Datediff function returns miliseconds as unit no metter what are you calculating (day, hour... difference)

Answers

  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Divide by 1000.0 and round to nearest integer to get seconds. Divide by (1000.0*60) and round to integer to get minutes. And so on...

    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Sign In or Register to comment.