The Date format for USA is MM/DD/YYYY and British is DD/MM/YYYY.
The WinRT Tablet will set the Date Format base on the TimeZone when you First Turn on it for setting.
Let say I am setting my WinRT tablet to use British Date Format ( DD/MM/YYYY) and use this code to insert date into SQLite .
Class Order { [PrimaryKey, AutoIncrement] public int SId { get; set; } public int CustId { get; set; } public string No { get; set; } public string Customer { get; set; } public DateTime Order_Date { get; set; } } using (var db = new SQLite.SQLiteConnection(DBPath)) { var newOrder = new Order() { CustId = g_intCustId, Customer = txtBlkCustomer.Text.Trim(), Order_Date = DateTime.Today }; db.Insert(newOrder);
1) What will be the Date format store by SQLite ? USA or British Date Format ?
2) How to set the date locale ( USA date or British date ) for SQLite database?
3) If above (2) is done, then the select statement (SQL-statement) base on date will base on the locale set?
Thanks