Is there a way to use day of week as a condition in converters e.g "Wednesday" without using lua?.
Thanks.
Is there a way to use day of week as a condition in converters e.g "Wednesday" without using lua?.
Thanks.
Hi,
there is a %d variable, %d[0,2] would give the day of the week in 3 letters, e.g. 'MON' for today, i.e.,
ImportConverter0 = ifequal "%d[0,2]","MON"; forward to MONDAY
regards,
Marcel
Thanks so much Mercel.
Is there anything you have not thought of! Very impressive.
Will try it out.
Regards.
I am using 1.4.17alpha. The %d variable does not seem to be working for day of the week.
Additionally, user guide says %d should mean date and time.
Where would it get the day of week? Dicom header (which does not seem to routinely contain day of week attribute) or from computer system?
Thanks.
Hi. Can you try nop %d. This shows what it returns. Marcel
Thanks Mercel.
It actually returns day of the week, date and time.
However it is case sensitive, so it is working perfectly when first letter is capital and other two lower case e.g "Mon" instead of "MON".
Much appreciated.
Don’t have an account yet? Register yourself now and be a part of our community!