Date functions
Hello,
Can you tell me what java date functions are available inside of a screen-scraper script.
I am trying to generate a date 2 months in the future like this but it will not take -
//set the expire date
cal = Calendar.getInstance(); // Current date
cal.add(Calendar.MONTH, 2);
Thanks
Date functions
jgardner,
For our soon-to-be-released version 4.0 we are introducing some pretty fancy date handling capabilities with the reformatDate() method. This functionality is available currently in the latest alpha version but will only be available in varied implementation for the professional and enterprise editions.
Follow these instructions to upgrade to the latest alpha.
http://www.screen-scraper.com/support/faq/faq.php#Upgrade2Alpha
Documentation on the reformatDate() method here.
http://dev.screen-scraper.com/support/docs/api_documentation.php#reformatDate
Otherwise, by default, you have available to you the date methods that are inherent in the Java API.
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Date.html
-Scott