B4i Question TimeParse - Eumel (first post)    Dec 28, 2014 in B4i You can use DateTime.DateTimeParse(Date as String, Time as String) But this way you need a Date too. Eumel... B4i Question Get the tick value of a date string - ciginfo    Mar 26, 2015 Is this code right? I want to obtain the tick value of a date "Thedate" registered in a database as date (AAAA-MM-JJ). It seems it does not work. What is the the syntax of "DateTime.DateTimeParse(Mydate,"")" if I want only date and not time. (I have not time in the database) Dim Mydate, Newdate, As Long Mydate = M.Get("Thedate") DateTime.DateFormat="AAAA-MM-JJ" DateTime.TimeFormat="H:mma" Newdate = DateTime.DateTimeParse(Mydate... B4J Question String toSQL DateTime formatDim Unit As String Dim Weight, Height, Target, BMI, BMIa, BMIb As Int Dim Hft, Hin, Wst, Wlbs, Tst, Tlb As Int Unit = s - keirS (first post)    Jul 27, 2020 Sub Process_Globals Private fx As JFX Private MainForm As Form Dim JOSQLDateTime As JavaObject Dim JSQL As SQL End Sub Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file. MainForm.Show DateTime.DateFormat = "yyyy-MM-dd" Dim DT As Long = DateTime.DateTimeParse("2020-07-27","18:33:00") Log(DT) JOSQLDateTime.InitializeNewInstance... German Date.Time - An Schi (first post)    Aug 6, 2017   (2 reactions) Hab mich doch schnell hingesetzt, dachte wenn ich auch mal was kann ;):D
Hab jetzt deinen neuen Code nicht angeschaut, bei mir gehts so:
Private p As Period
Private t1 As Long
Private t2 As Long
DateTime.DateFormat = "dd.MM.yyyy"
DateTime.TimeFormat = "HH:mm:ss"
t1 = DateTime.DateTimeParse("01.08.2017", "08:45:37")
t2 = DateTime.DateTimeParse... B4J Question dd/MMM/yyyy to Ticks - Erel (first post)    Dec 15, 2016 DateTime.DateFormat = "dd/MMM/yyyy" DateTime.TimeFormat = "hh:mm a" Dim t As Long = DateTime.DateTimeParse("20/Jan/2016", "10:20 AM") Log($"$DateTime{t}"$) ... B4A Question adding an entry to Calendar - Colin Evans    Apr 16, 2022 As Long = DateTime.datetimeParse(ChkDate,btnTimeFrom.xLBL.Text) Dim tTo As Long = DateTime.datetimeParse(ChkDate,btnTimeTo.xLBL.Text) chkDay=0 End If Log("chkDate "... received Sub btnSave_Click Dim chkDay As Int DateTime.DateFormat = "dd/MM/yyyy" DateTime.TimeFormat = "HH:mm" Dim ChkDate As String = DateTime.Date(Main.DateRet... B4A Question Trying to compare current time using TimeParse - LucaMs (first post)    Aug 5, 2015 What is the format of strSilentPeriod1Start? Maybe you need to use DateTime.DateTimeParse. You could also use DateUtils.PeriodBetween. ... B4A Question A Date comparator - Lary Yenta (first post)    Apr 8, 2015 DateTime.DateTimeParse(datesplit(0), datesplit(1))) dates(i) = DateTime.DateTimeParse(datesplit(0... an error at the line dates(i) = Datetime.DateTimeParse......Can someonesuggest what I am doing wrong?... 'StartActivity(SimpleGraph) DateTime.DateFormat = "yyyy-MM-dd" DateTime.TimeFormat = "HH:mm" MsD2List.Initialize DtValue = DateTime.DateParse(edtDte.Text) For i = 0 To RC-1... B4A Question Add seconds to Date - fabioferreiracs (first post)    Jan 22, 2013 ok, that is all I needed. thank. Erel , congratulations ; DateTime.DateTimeParse is the best !... B4i Question DateTimeParse problem - Tomas Petrus    Apr 5, 2019 Hi guys what am I missing working in B4A DateTime.DateFormat = "dd.MM.yyyy" //format in which user enter the date Dim t As Long = DateTime.DateTimeParse(Datum, Cas) //line 902 DateTime.DateFormat = "yyyy-MM-dd" //output format error in B4i Error occurred on line: 902 (Main) Error parsing date string. Stack Trace: ( CoreFoundation <redacted> + 252 libobjc.A.dylib objc_exception_throw + 56 CoreFoundation <redacted> + 0 result... Page: 1   2   3   4   5   6   7   |