on 08-24-2015 4:59 PM
Hi,
I have a requirement , i need to populate the day ( Sunday or Monday or whatever exact string ) based on input date value.
I had tried with date transformation, which is not producing string value of required Day from the standard date functions.
Can anyone guide me how to get this value without UDF. If UDF is mandatory then plz guide me how to write the simple java code to fetch this value.
Regards
Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jain,
Just to add here is that the mapping functions will take the system timezone as the default.
If you want any other specific timezone calendar, then udf is needed to set the same and give the output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jain,
If you import in yor UDF the java.util.calendar, you can do it easily like this thread shows:
http://stackoverflow.com/questions/18333099/how-to-find-which-day-of-the-week-it-is-java
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.