Hi all
I want to add "n" days to a date. So, I use the functions "Format()" and "DateAdd()" like that:
The problem : on differents computers, "Format()" gives 28/6/2004 or 6/28/2004.
My program must work on all computers, so I don't where I can't fix "d m yyyy" in my code...
Thanks for your help.
Rodie
I want to add "n" days to a date. So, I use the functions "Format()" and "DateAdd()" like that:
Code:
Dim final_date as Date
final_date = day & " " & month & " " & year [COLOR=green]' 28 6 2004[/color]
final_date = Format(final_date, "General Date")
final_date = DateAdd("d", n, final_date)
The problem : on differents computers, "Format()" gives 28/6/2004 or 6/28/2004.
My program must work on all computers, so I don't where I can't fix "d m yyyy" in my code...
Thanks for your help.
Rodie