Bartus
09-02-2003, 08:33 AM
Hello !!!
I have problems with CDate and DataParts.
I need to separate day, month and year from date.
Format of my date it dd-MM-yyyy
doba=request.QueryString("data")
(ex. 01-09-2003, 01-day, 09-month)
doba=CDATE(data)
year=datepart("yyyy",(doba))
month=datepart("m",doba)
day=datepart("d",(doba))
And the problem is that I recived day=09, month=01 ?
How to make CDATE works with dd-MM-yyyy format ?
I have problems with CDate and DataParts.
I need to separate day, month and year from date.
Format of my date it dd-MM-yyyy
doba=request.QueryString("data")
(ex. 01-09-2003, 01-day, 09-month)
doba=CDATE(data)
year=datepart("yyyy",(doba))
month=datepart("m",doba)
day=datepart("d",(doba))
And the problem is that I recived day=09, month=01 ?
How to make CDATE works with dd-MM-yyyy format ?