regex - Validate MM/DD string in SSRS -


i have text parameter in 1 of reports user enters string. need validate 2 things.

1) whether entered value in mm/dd format

2) if entered value in mm/dd format, need check whether valid mm/dd value. example if user enters 02/29,02/28,03/31 etc valid values. if user enters 02/30, 04/31, 07/32 etc these values invalid.

please in achieving above 2 validations.

although validate parameter creating variable assessing validity , using variable show or hide report items , error message, think might more elegant use existing date/time data type parameter , use datepart() function in ssrs or sql pick out day , month whatever report purposes need. barring that, write expression test valid date:

 =isdate(parameters!date.value + "/2016") 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -