joshtynjala commented on issue #1180:
URL: https://github.com/apache/royale-asjs/issues/1180#issuecomment-1082309888


   The first thing I would do is figure out what type the actual value of 
`pDate` is at runtime (which is what I've been encouraging you to do). My guess 
is that it's a string, but you won't know until you check in the debugger, or 
possibly with `trace()`.
   
   Once you know the type, you can to figure out how to convert that value into 
a proper `Date`. That conversion should probably happen in your code that 
parses the server response. If you do it early enough, you should have an 
object of the correct `Date` type before it ever gets to your `GetDateString()` 
function.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to