I need to insert my date values on website application to it's sqlserver table, but in solar date format. The problem is, The first month until the sixth month, the days counts are 31 days, in solar calendar and when I insert for ex: 1394-02-31
,
sql server give me an error that
, because february has not 31 days.
So I try to add some new datatype that derived from date datatype as below fig:
but I'm confused when I want to fill values.
So, Please help me to solve my problem, are there any sources to show me how to add new date datatype in sqlserver 2008?