You need to sign in to do that
Don't have an account?

Get Month from Week Number ?
I have value like '199924' where 1999 => Year and 24 is week.
I want to get the month of the week (24) and date of the weeks first day. How can i do this in Apex ?
I want to get the month of the week (24) and date of the weeks first day. How can i do this in Apex ?
Please double-check my assuption regarding whether the start of week one is the start of the week that contains January 1st.
My recommendation would be to create a utility method that can return the date for you, when passing in the raw string value, then fully test this in a test method, passing in valid and invalid values. You'll need to determine what the response should be whenever the inputs are invalid.
All Answers
Please double-check my assuption regarding whether the start of week one is the start of the week that contains January 1st.
My recommendation would be to create a utility method that can return the date for you, when passing in the raw string value, then fully test this in a test method, passing in valid and invalid values. You'll need to determine what the response should be whenever the inputs are invalid.