Problem with Date Field when using DataDriven Unit Test off .csv RRS feed

  • Question

  • I have a unit Data Driven unit Test that involves Date fields. the Test Validates Date format  and is really a string Field.

    The Problem i encounter is that Date is stored as "10/10/2001" and


    Automatically formats Date and put escape character in it and when running unit test it returns "\"10/10/2011\"".

    How do i get back the Original Date without any conversion.

    NOTE: Dates are Handled as string when passing to function.

    Wednesday, May 9, 2012 5:59 PM


  • How about you store the date as 10/10/2001 instead of "10/10/2001" in the datasource (csv, etc)




    • Marked as answer by Tony xiao Wednesday, May 16, 2012 9:22 AM
    Thursday, May 10, 2012 2:36 AM