if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[MiladiToShamsi]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[MiladiToShamsi]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ShamsiToMiladi]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[ShamsiToMiladi]

