I am trying to store my date in the format 'YYMM' / 'YY-MM' as date type without conversion, as I only need the year and month. Solutions I've searched online are mostly by conversion like Cast etc. Was wondering if it is possible to configure it from the datatype in the database table like Date(1, 1). Thanks!
Asked
Active
Viewed 500 times
0
-
3store dates as dates not strings! Doing otherwise is a recipe for pain! – Mitch Wheat Nov 08 '16 at 04:52
-
please visit site Different [way of store month and year](http://dba.stackexchange.com/questions/14800/best-pratice-to-store-dates-group-by-months-year-key-par-value) .it's help you – Rajshee Turakhia Nov 08 '16 at 05:25
-
please visit site http://dba.stackexchange.com/questions/14800/best-pratice-to-store-dates-group-by-months-year-key-par-value it's help you – Rajshee Turakhia Nov 08 '16 at 05:26
-
[Bad habits to kick : choosing the wrong data type](https://sqlblog.org/2009/10/12/bad-habits-to-kick-choosing-the-wrong-data-type) - you should always use the most appropriate data type - that's what they're there for, after all! – marc_s Nov 08 '16 at 05:43