PDA

Click to See Complete Forum and Search --> : date (MM/DD/YY & DD/MM/YY)


onez
Jun 1st, 2000, 10:41 AM
hai everyone....

i have problem with the date.i use active x contol calendar to ask user insert the date.it follow the client computer that is MM/DD/YY but i also using some date function.it's formula is reverse from active x control-DD/MM/YY.it give big problem to me when i want to add a number to the date because it's not in the same formula.

so i want to know if there's any function that can convert date from MM/DD/YY to DD/MM/YY.i really need your help.i'm stuck of this......
thanks

Ianpbaker
Jun 1st, 2000, 02:25 PM
If you are using asp you can use the formatdatetime function or if it is in VB you can use the format function

eg. myconverteddate = format(mydate,"dd/mm/yyyy")

Hope this helps

ian

Ruxpin
Jun 1st, 2000, 02:46 PM
If you want to add to dates as well probably best to use the dateadd function

dateadd("m",1,now)

onez
Jun 6th, 2000, 07:12 AM
thanks for your help.it solve my problem..