on 10-11-2006 4:09 PM
Hi all,
Please let me know how to get the current date?
Regards
DK
Hello DK,
Use this code inside your program.
java.util.Date tempDate = Calendar.getInstance().
getTime();
Date sqlDate = new Date(tempDate.getTime());
this.wdContext.currentContextElement().
setStartDate(sqlDate);
Hope this resolves to get the current system date.
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
guys, just curious: do you differenciate system date/time (on the server) and client date/time which in general are not the same?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Date date1 = new Date();
SimpleDateFormat fmtDatePlain = new SimpleDateFormat("yyyyMMdd");
String formattedDate = fmtDatePlain.format(date1);
System.out.println("todaysdate" +formattedDate);
Thanks
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.