03-11-2012 10:57 PM
I want to compare the time to display working shift like Morning 7:15 to 14:00 is A shift and 14:00 to 22:30 - B shift . Please some one give the solution.
Thanks in advance
Anilkumar
03-12-2012 01:05 AM
You could try this:
03-12-2012 01:16 AM
@Anilgk wrote:
I want to compare the time to display working shift like Morning 7:15 to 14:00 is A shift and 14:00 to 22:30 - B shift.
What should the result be for times before 7:15 or after 22:30? Please provide a complete problem specifications. 😉
03-12-2012 02:32 AM - edited 03-12-2012 02:35 AM
Ignore this post, I though Altenbach was asking a question, not making a request!!
03-12-2012 02:38 AM
@Wes Ramm wrote:
In this case, the value for the resulting string is limited to what the two "Select" primitives, linked in series, can do.
Yes, the code by .:aCe:. is an over-interpretation of the incomplete problem specification by Anilkumar. It was not specified what should happen in the exception case. In any case, I am sure there is a significantly simpler solution. 😉