"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

VWS code snippet question

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

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