Geeks Talk

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.

Date Comparison with date and text format

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 ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 4 Weeks Ago
Junior Member
 
Join Date: Oct 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
edwardtuty is on a distinguished road
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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 4 Weeks Ago
Expert Member
 
Join Date: Jun 2008
Posts: 212
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to learqtptesting For This Useful Post:
Reply

  Geeks Talk > Software Testing > QTP

Tags
date

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 12:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved