Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Correct Date Format

$
0
0
I have spent all morning and tried everything i have found. All I need is for my Date to be in the UK Format (dd/MM/yyyy).

My date is populated in a DT and appears correct while in there. As soon as i pull the data from the DT and assign it As Date it switches to MM/dd/yyyy everytime, i have tried assigning it as a String then using CDate, i have tried change the CultureInfo to GB then assigning the date, i have tried it as a String then using Format(var, "dd/MM/yyyy"). The value has to be in the Date format as the system won't take a String. When it is in a String format it is in the correct Format.

Thanks in advance for any help,

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>