18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Date

Dinesh KanojiaDinesh Kanojia Members
edited November -1 in Sahi - Open Source
hi,

i am DInesh and using sahi is quite a good experience with another tool

my question is can i check Current date or any date in dd-MMM-yyyy format
please let me known

Warm Regards,
Dinesh.K
Tagged:

Comments

  • narayannarayan Administrators
    Do you want to parse some text on the browser and check if it is a particular date? (like today's date)?
  • Hi Narayan,

    no i does not want to parse any text?

    my question is ?
    i am Creating a bill of currrent data and simulteneously and recording my each step,
    now if suppose i play my recorded senario to next day so my date will change
    so i want to track date when not me or anybody in my team want to run those senario again
    so recorded will take current date of server not the date on which recording take place.

    thanks in advance
    warm regards,
    DInesh.K
  • narayannarayan Administrators
    Try this:

    var $formattedDate = new java.text.SimpleDateFormat("dd-MMM-yyyy").format(new java.util.Date());


    Regards,
    Narayan
Sign In or Register to comment.