Android Question Mysterious DateTime Error

chrjak

Active Member
Licensed User
Longtime User
Hey,

I have a Error in my big project.
The Code is:
Dim longi As Long
longi = DateTime.DateParse("01/01/2014")

and it is in a sub, which is called in Activity_Create.
I get a "java.text.ParseException: Unparseable date: "01/01/2014" (at offset 0)" Error

Logcat:
** Activity (main) Create, isFirst = false **


java.text.ParseException: Unparseable date: "01/01/2014" (at offset 0)

at java.text.DateFormat.parse(DateFormat.java:555)
at anywheresoftware.b4a.keywords.DateTime.DateParse(DateTime.java:148)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
java.text.ParseException: Unparseable date: "01/01/2014" (at offset 0)


I tried already to type everything new in but there was no changing. Is this a bug?
 
Top