Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Date Comparison with date and text format within the QTP forums, part of the Software Testing category; Hello Friends, This is my first post. I wants to compare date format(24/10/2009) from the DB with the date format(24 October 2009) in the page. Whether there is any syntax ...
|
|||||||
|
|||
|
Date Comparison with date and text format
Hello Friends,
This is my first post. I wants to compare date format(24/10/2009) from the DB with the date format(24 October 2009) in the page. Whether there is any syntax for comparing these type of dates other than comparing each field separately. Please reply. Thanks. |
| Sponsored Links |
|
|||
|
Re: Date Comparison with date and text format
See below and modify to your need.
dd = "24 October 2009" mydate = cdate(dd) if (mydate = date()) then msgbox mydate & "=" & date() Else msgbox mydate & "<>" & date() End if |
| The Following User Says Thank You to learqtptesting For This Useful Post: | ||
![]() |
|
| Tags |
| date |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert date to numberic format | annasundaram03 | LoadRunner | 1 | 05-20-2009 05:54 AM |
| How to convert any date to this () format 01/10/2009 14:30 | nageshearaiah | QTP | 1 | 01-09-2009 07:35 AM |
| converting date format | sowmini devi | QTP | 1 | 11-28-2008 07:29 AM |
| CCYYMMDD date format in Informatica | Geek_Guest | Data Warehousing | 1 | 10-08-2007 08:05 AM |
| romise date, Need by date, Original Date in PO | Geek_Guest | Oracle Apps | 0 | 04-07-2007 12:53 AM |