Home Forums Programming General View Complete Timestamp in VB RE: View Complete Timestamp in VB

  • How about the SQL Server command CONVERT:

    SELECT CONVERT(VARCHAR(23), GETDATE(), 121)

    That will return the date and time in the format you want. yyyy-mm-dd hh:mi:ss.mmm

    -SQLBill