Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to identify the sap date format.
#4
Solved: 10 Years, 10 Months, 1 Week ago
I would suggest you to use mmddyyyy format as it will be easier for you. You can use Date() for this.

Anyways, to get the date in your desired format, you can always create them using the below code...


Code:
daytoday=Day(Now)
currentMont=Month(Now)
currentyear=Year(Now)

Now you have the day, month and year value . you can make them as you want.

eg.
for DD.MM.YYYY use daytoday&"."&currentMont&"."&currentyear

Similar way you can make any combination.

Regards,
Ankesh
Reply


Messages In This Thread
RE: How to identify the sap date format. - by Ankesh - 10-16-2012, 06:49 PM

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 3,921 05-30-2014, 01:25 PM
Last Post: Tarik Sheth
  Validate Numeric value is displaying expected format kalaivanan123 1 3,396 09-23-2013, 08:45 PM
Last Post: ravi.gajul
  SAP QTP issue-SAP screen disappear Jyobtech 2 3,232 02-27-2013, 10:01 AM
Last Post: Jyobtech
  Date format changes from 'yyyy-mm-dd hh:mm:ss' to 'mm/dd/yyyy' Rashmi Vishwanath 2 4,917 01-10-2013, 10:10 AM
Last Post: soumen
  Need Help Datatable Parameterzing Date debindas 1 3,489 08-30-2012, 11:43 PM
Last Post: QTPScript

Forum Jump:


Users browsing this thread: 1 Guest(s)