Unanswered question

How to have time formated to HH:MM AM/PM format?

Hello, we need to have a value for a current time parameter to be formatted to HH:MM AM/PM format, i.e. 11:43 PM. Thanks!

BC Housing A.
BC Housing A.

BC Housing A.

Level
0
34 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

In the NeoLoad variable manager if you select a date or current date variable you should be able to use that pattern: HH:mm a

 

BC Housing A.
BC Housing A.

BC Housing A.

Level
0
34 / 100
points

Excellent, thank you very much! Is there a list of patterns with examples somewhere in Neoload manual or help files? Is there any meaning to capital or low case letters in the patterns? Thanks!

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

We do not document those pattern but you can look at here since it's based on the Java pattern.

Moreover when you configure a date variable in NeoLoad you can check the default example of patterns available and check the result within the variable manager panel.

BC Housing A.
BC Housing A.

BC Housing A.

Level
0
34 / 100
points

Thank you Nouredine A! This helped a lot, now another issue is the date format. We need the date to be in the format YYYY-MM-DD, so we are using this pattern for a variable $CurrentDate, however, the actual date value generated with this pattern looks like - 2017-11-306 - instead of expected value 2017-11-02, See attached screenshot for more details. What would you recommend?

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

DD should not be in upper case but in lower case instead. Otherwise it does not mean the day of the month but of the year.