Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to identify the sap date format.
#1
Solved: 10 Years, 9 Months, 1 Week ago
hi,
How to identify the SAP date format. plz reply
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
What do you want to identify? Can u explain a bit?

Usually SAP date fromat will be in mmddyyyy Format.
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
In SAP 6 and 7 types of date’s formats.
But I'm asking for following 3 types of formatting.
DD.MM.YYYY
MM/DD/YYYY
YYYY.MM.DD

If in QTP, I maintain DD.MM.YYYY format. But in user's SAP system has different format. How can manage this situation
Reply
#4
Solved: 10 Years, 9 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
#5
Solved: 10 Years, 9 Months, 1 Week ago
Hi Ankesh,
Thanks for your help.

Regards,
Kamal
Reply


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,910 05-30-2014, 01:25 PM
Last Post: Tarik Sheth
  Validate Numeric value is displaying expected format kalaivanan123 1 3,388 09-23-2013, 08:45 PM
Last Post: ravi.gajul
  SAP QTP issue-SAP screen disappear Jyobtech 2 3,204 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,868 01-10-2013, 10:10 AM
Last Post: soumen
  Need Help Datatable Parameterzing Date debindas 1 3,439 08-30-2012, 11:43 PM
Last Post: QTPScript

Forum Jump:


Users browsing this thread: 1 Guest(s)