stingrae Member Licensed User Longtime User Nov 9, 2018 #1 Sorry to ask, as this is probably something really silly, but has been driving me nuts for about 30 minutes ... In the code below, why is intD coming back with a value of -643259264 ? B4X: DateTime.DateFormat = "dd-MMM-yyyy" Dim strD As String = "04-Nov-2018" Dim intD As Int = DateTime.DateParse(strD) Log(intD) Thanks in advance
Sorry to ask, as this is probably something really silly, but has been driving me nuts for about 30 minutes ... In the code below, why is intD coming back with a value of -643259264 ? B4X: DateTime.DateFormat = "dd-MMM-yyyy" Dim strD As String = "04-Nov-2018" Dim intD As Int = DateTime.DateParse(strD) Log(intD) Thanks in advance
klaus Expert Licensed User Longtime User Nov 9, 2018 #2 DateTime.DateParse(strD) returns a Long type variable. Therfore: Dim longD As Long = DateTime.DateParse(strD) Upvote 0
DateTime.DateParse(strD) returns a Long type variable. Therfore: Dim longD As Long = DateTime.DateParse(strD)
stingrae Member Licensed User Longtime User Nov 9, 2018 #3 d'oh ... knew it had to be simple! Thank you Upvote 0