Dim ThisDateTime As Long
DateTime.DateFormat="dd-MMM-yy HH:mm"
ThisDateTime = DateTime.TimeParse(DateTime.Now)
Dim cmd As DBcommand = CreateCommand("sendmessagefromsite",Array(ThisDateTime, AndroidID, Message))
java.text.ParseException: Unparseable date: "1594278402264"
As in Microsoft SQL Server?
How is the field defined in your DB?
You are not working with date / time values correctly.This code does not work: (can you please help):
Yes, MS Sql Server. It is defined as datetime
Dim ThisDateTime As String
DateTime.DateFormat="yyyy-MM-dd HH:mm:ss"
ThisDateTime = DateTime.date(DateTime.Now)
Log(ThisDateTime) 'displays: 2020-07-09 07:36:24 of course current