• timothy bates (11/8/2010)


    Set Language 'GREECE'

    --The format for dates used here is YYYYMMDD and is intended to be functional within your environment.

    CREATE TABLE [dbo].[Gregory] (

    [dt] [datetime] NOT NULL ,

    [row] [int] NULL

    ) ON [PRIMARY]

    GO

    INSERT INTO Gregory VALUES ('19160821',1)

    INSERT INTO Gregory VALUES ('19160921',1)

    INSERT INTO Gregory VALUES ('19161021',1)

    Select count * from Gregory

    Should I get an error or count 2 instead of 3? :hehe:

    You should get 2 errors: the language should be Greek, not Greece, and the count * should be count(*) or even better count(1). Other than that, when you opt to use YYYYMMDD format, it is independent on local settings, as it is one of the 2 universally accepted ISO formats, meaning that once your syntax is corrected, you should get 3 records and no errors 🙂

    As far as switching to the Gregorian from Julian, while Greece accepted to change their calendar, Orthodox Christian Church did not, and therefore, all Holidays are still off by 13 days. For example, in Greece, Russia, Lebanon and other countries where main Christian denomination is Orthodox, Christmas Day is observed on 25th of December by Julian Calendar, which happens to be 7th of January. Additionally, in countries like Russia they observe an extra "New Year Day", which comes a week after Christmas (New Year eve is on 13 of January). Since in Russia there are Christians of other denominations besides Orthodox, they get to observe Christmas Day twice and New Year Day twice (all 4 days are official holidays, the offices are closed) 😀

    Oleg