G
Geoff Jones
Hi
I've just found something very strange when using Date types within string.
Consider the following:
Dim myDate = DateValueRow("The Date")
' myDate is a date taken from a DataTable
' During debugging in a watch window it had value 5/28/03
Dim newStringDate = "The Date is " + myDate
' The value of newStringDate is now 28/05/03 i.e. the month and day have
swapped.
Can anybody explain why this is happening and how to avoid it?
Thanks in advance
Geoff
I've just found something very strange when using Date types within string.
Consider the following:
Dim myDate = DateValueRow("The Date")
' myDate is a date taken from a DataTable
' During debugging in a watch window it had value 5/28/03
Dim newStringDate = "The Date is " + myDate
' The value of newStringDate is now 28/05/03 i.e. the month and day have
swapped.
Can anybody explain why this is happening and how to avoid it?
Thanks in advance
Geoff