Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public class DataTypeDisplayPattern
new DataTypeDisplayPattern() {Id=28,Systemtype = DataTypeCode.DateTime, Name = "Secound", ExcelPattern=@"ss", DisplayPattern="ss", StringPattern = "ss", RegexPattern = null},
new DataTypeDisplayPattern() {Id=29,Systemtype = DataTypeCode.DateTime, Name = "DateEu with time24", ExcelPattern=@"dd\.MM\.yyyy HH:mm:ss", DisplayPattern="dd.MM.yyyy HH:mm:ss", StringPattern = "dd.MM.yyyy HH:mm:ss", RegexPattern = null},
new DataTypeDisplayPattern() {Id=30,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso without sec", ExcelPattern=@"yyyy-MM-dd\Thh:mm", DisplayPattern="yyyy-MM-ddThh:mm", StringPattern = "yyyy-MM-ddTHH:mm", RegexPattern = null},
new DataTypeDisplayPattern() {Id=31,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso withou T", ExcelPattern=@"yyyy-MM-dd hh:mm:ss", DisplayPattern="yyyyy-MM-dd hh:mm:ss", StringPattern = "yyyy-MM-dd hh:mm:ss", RegexPattern = null}
new DataTypeDisplayPattern() {Id=31,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso withou T", ExcelPattern=@"yyyy-MM-dd hh:mm:ss", DisplayPattern="yyyyy-MM-dd hh:mm:ss", StringPattern = "yyyy-MM-dd hh:mm:ss", RegexPattern = null},
new DataTypeDisplayPattern() {Id=32,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso withou T and 24h", ExcelPattern=@"yyyy-MM-dd HH:mm:ss", DisplayPattern="yyyyy-MM-dd HH:mm:ss", StringPattern = "yyyy-MM-dd HH:mm:ss", RegexPattern = null}

};

Expand Down
3 changes: 2 additions & 1 deletion Components/IO/BExIS.IO.Tests/IOUtilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public void OneTimeTearDown()
{
}

[TestCase("2026-12-24 05:05:50", "yyyy-MM-dd hh:mm:ss", "12/24/2026 5:05:50 AM", true, "en-US")]
[TestCase("2024-05-17 16:00:54", "yyyy-MM-dd HH:mm:ss", "5/17/2024 4:00:54 PM", true, "en-US")]
[TestCase("2024-05-17 04:00:54", "yyyy-MM-dd hh:mm:ss", "5/17/2024 4:00:54 AM", true, "en-US")]
[TestCase("12:00 pm", "hh:mm tt", "1/1/0001 12:00:00 PM", true, "en-US")]
[TestCase("12:00:00 pm", "hh:mm:ss tt", "1/1/0001 12:00:00 PM", true, "en-US")]
[TestCase("2023-29-12", "yyyy-d-M", "12/29/2023 12:00:00 AM", true)]
Expand Down
Loading