Forum Discussion

udhayas's avatar
udhayas
Occasional Contributor
14 years ago

Testing the Date Format.

Hi,



I'm using Test Complete 7 To automate a Web application developed in SharePoint. In this application, I have to check the existence of the date and have to check the date format. If the site region is set to UK, the date format must be dd/mm/yy and if the site region is US, the date format must be mm/dd/yy. How can I check the format of the date inVB Script. Please help me with this.







Thanks & Regards,

Udhay.

8 Replies

  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    Have you tried using native properties of the control? What is the control name and vendor?
  • udhayas's avatar
    udhayas
    Occasional Contributor
    Hi,



    The control is a link button. But why should I consider the control name and vendor for checking the date format?



    Thanks,

    Udhay.
  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    This can help SmartBear investigate the available properties to suggest you a solution. And what about native properties? Aren't there any appropriate ones (dateFormat, Format, etc.)?
  • udhayas's avatar
    udhayas
    Occasional Contributor
    Hi Ncoes Jayco,



    Thank You for clearing the doubt. I have no properties as you mentioned. I just have a link button with the date text as "11/30/2011". Based on the regional site, I have to check the Date format.



    Thanks,

    Udhay.
  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    What is the value of the outerHTML property of LinkButton?
  • udhayas's avatar
    udhayas
    Occasional Contributor
    <A href= "*" ; Source="*" ; OpenIn=Browser">12/15/11</A>
  • udhayas's avatar
    udhayas
    Occasional Contributor
    Hi,



    The Link was helpful. Thanks.,





    Thanks

    Udhay