Skip to content

Commit

Permalink
Test standard date display format
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam committed Oct 12, 2024
1 parent 57754e1 commit 4be4ff2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1002,19 +1002,19 @@ public void testClinicalHistoryPanelOptions(){
@Test
public void testDateFormat(){

String dateFormat = "yy-M-d";
String dateTimeFormat = "yy-M-d H:mm";
String expectedDate = "16-6-1";
String expectedTime = "8:58";
String dateFormat = "dd-MMM-yyyy";
String dateTimeFormat = dateFormat + "HH:mm:ss.SSS";
String expectedDate = "01-Jun-2016";
String expectedTime = "08:58:00.000";

testDateFormat(dateFormat,dateTimeFormat, expectedDate, expectedTime);
testDateFormat(dateFormat, dateTimeFormat, expectedDate, expectedTime);

dateFormat = "yyyy-MM-dd";
dateTimeFormat = dateFormat + " HH:mm";
expectedDate = "2016-06-01";
expectedTime = "08:58";

testDateFormat(dateFormat,dateTimeFormat, expectedDate, expectedTime);
testDateFormat(dateFormat, dateTimeFormat, expectedDate, expectedTime);

}

Expand Down

0 comments on commit 4be4ff2

Please sign in to comment.