Conversion of datetime

  • Hi,

    I need to convert the time from datetime value to milliseconds.

    For Example if we schedule the job with date is '2009-11-03 10:19:13.5000000' , then sysjobschedules stores the startdate and starttime in which the starttime holds the milliseconds value i.e converting hours,minutes into milliseconds.

    Can anyone help me out the logic behind this calculation?

    Thanks

    Anitha

  • You'd need to get the datepart for seconds, or strip out the value.

    The calculation is then seconds * 1000 for ms.

    multiply by 60 for minutes to ms.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply