By pw96pw96pw96
on Thu, 02/13/2014 - 00:05
Dear Vuforia Engineers,
In the Java sample code I found the following code snippet, which confused me.
DateUtils.formatDate(new Date()).replaceFirst("[+]00:00$", "")
Why cannot I just use DateUtils.formatDate(new Date())?
What is the use of replaceFirst("[+]00:00$", "")?
Thank you for your time.
Best Regards,
Peng
VWS code snippet question
That's simply to prepare the new Date() string so that it is formatted correctly for the expected date format - it is removing the leading 00:00 in the s