I wanted to do a post request in the form of XML , but thing is i don't want static data in date and time fields . I wanted to take today's date from system.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<site_banner>
<title>Behat Test Banner</title>
<type>site_banner</type>
<language>en</language>
<field_banner_message_str>
<und is_array="true">
<item>
<value>Test please ignore</value>
</item>
</und>
</field_banner_message_str>
<field_banner_type>
<und>
<value>success</value>
</und>
</field_banner_type>
<field_banner_start_date>
<und is_array="true">
<item>
<value>
<date>06/01/2018</date>
<time>07:30:00</time>
</value>
</item>
</und>
</field_banner_start_date>
<field_banner_end_date>
<und is_array="true">
<item>
<value>
<date>06/01/2018</date>
<time>08:30:00</time>
</value>
</item>
</und>
</field_banner_end_date>
</site_banner>
This is the post call i am making , so is there any way we can make date and time dynamic according to system. I have tried including some code in JavaScript but did't work. It will be great help, as i am quiet new to API automation.