Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Returned Date Format
#3
Solved: 11 Years, 4 Months ago
Rajpes,

Thx again...

Your solution is way easier then my final solution:

Code:
TodayDateMinusOne = DateAdd("d",-1,Now())
    eDate = FormatDateTime(TodayDateMinusOne, 2)
    'Call DateManipulate(eDate)  Insure date is MM/DD/YYYY format

    'Function DateManipulate(eDate)
    'Insure date is MM/DD/YYYY format
    Set MyDate = DotNetFactory.CreateInstance("System.DateTime")
    Set oDate = MyDate.Parse(eDate)
    DateManipulate = oDate.ToString("MM/dd/yyyy")
    eDate = DateManipulate
    'msgbox DateManipulate
    Set MyDate = Nothing
    'End Function



lol
Reply


Messages In This Thread
Returned Date Format - by mv8167 - 07-01-2011, 02:54 AM
RE: Returned Date Format - by rajpes - 07-04-2011, 05:39 PM
RE: Returned Date Format - by mv8167 - 07-06-2011, 12:47 AM
RE: Returned Date Format - by rajpes - 07-06-2011, 09:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP11.0 - Date format is changed as text while executing the QTP script. Automation Tester 1 4,122 05-30-2014, 01:25 PM
Last Post: Tarik Sheth
  Validate Numeric value is displaying expected format kalaivanan123 1 3,508 09-23-2013, 08:45 PM
Last Post: ravi.gajul
  Date format changes from 'yyyy-mm-dd hh:mm:ss' to 'mm/dd/yyyy' Rashmi Vishwanath 2 5,122 01-10-2013, 10:10 AM
Last Post: soumen
  How to identify the sap date format. kamal262007 4 3,738 10-17-2012, 08:25 AM
Last Post: kamal262007
  Need Help Datatable Parameterzing Date debindas 1 3,688 08-30-2012, 11:43 PM
Last Post: QTPScript

Forum Jump:


Users browsing this thread: 2 Guest(s)