on 06-18-2015 4:21 PM
Hello Experts,
Can anybody help to understand how will I fetch the Day for the specified date?
Example: If Input is 06182015, I need to return as Thursday.
Kindly help me understand this.
Thanks in Advance.
Regards,
Chandan
As mentioned by Horst there is no standard library, but you can create your own reuse function
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Alessandro and Horst,
I am at least now clear that I would not have to utilize my time finding the standard functionality.
I will surely try to create own Reuse functionality for this but I will need your expertise on this. Can you please elaborate more so that I can understand how this can be achieved.
Appreciate your quick help.
Thanks,
Chandan
1) Create a reuse function that have in import the date and returns a string
2) in the reuse function start with:
var day = this.date.GetDay();
var month = this.date.GetMonth();
var year = this.date.GetYear();
3)
[implement the algorithm that you can find here Determination of the day of the week - Wikipedia, the free encyclopedia) in the section A Tabular method to calculate the day of the week)
case dayoftheweek
1: return "Monday"
2: return "Tuesday"
etc. etc.
Hello Alessandro/Horst,
I have created the reuse function. It took me to time since I also had additional requirement related to same but I have finally created the blog for same to share with Community. Here is the link for same.
Your expertise to improvise this will motivate me to learn more.
Thanks once again.
Cheers,
Chandan
Hello Chandan,
Sorry, but there ios no function in the reuse library for Dat efor this.
Especially as the language would play a vital role in the translation.
Sorry,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.