Java – Android: get the day of the week from the date?
                                        
                    •
                    Java                                    
                How can I format the date like this
public static String sFleTimeToDate(double ft) {
           double date = ft / 10000 - 11644455600000L;
           date += TimeZone.getDefault().getOffset((long) date);
           return DateFormat.format("ddd,dd MMM yyyy",new Date((long) date)).toString();
}
But this function is restored
Solution
You can set dateformat Change format to
DateFormat.format("EEE,new Date((long) date)).toString();
                
                            The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
                        
                                            
                        THE END
                    
                    
                    
                                                        二维码
                        
                        
                                                
                        